Gradle + JUnit

Hello, i trying to run tests with JUnit 4.10, but got this errors:

[sts] -----------------------------------------------------
[sts] Starting Gradle build for the following tasks:
 [sts]
    clean
[sts]
    build
[sts]
    test
[sts]
    jar
[sts] -----------------------------------------------------
:clean
:compileJavaD:\JAVA\Theos.RestServer\src\main\java\test\BoletoControleTest.java:5: error: package org.junit does not exist
import org.junit.Assert;

Here my gradle dependencies

dependencies {
    compile("org.springframework.boot:spring-boot-starter-web")
    compile("com.fasterxml.jackson.core:jackson-databind")
     compile("org.hibernate:hibernate-core:4.3.5.Final")
    compile("org.hibernate:hibernate-c3p0:4.3.5.Final")
    compile("org.firebirdsql.jdbc:jaybird:2.2.5")
        compile("org.springframework.security:spring-security-web:3.2.4.RELEASE")
    compile("org.springframework.security:spring-security-config:3.2.4.RELEASE")
          testCompile("junit:junit:4.10")
}

I made something wrong ?

thanks.

The test needs to go into ‘src\main\test’, not ‘src\main\java\test’.