It seems it's a genuine compilation error in your test code. Do you have all
required dependencies defined in build.gradle? Perhaps jUnit just needs to
be added to the dependencies.

Cheers!
Szczepan

On Thu, Mar 24, 2011 at 11:43 AM, vgajula <vijay.gaj...@gmail.com> wrote:

> I have written a test class which extends AbstractTestNGSpringContextTests.
> its not compiling with below errors:
>
>
> :service:compileTestGroovyorg.codehaus.groovy.control.MultipleCompilationErrorsException:
> startup failed:
>
> D:\work\i\com\nbos\model\auth\service\src\test\groovy\com\nbos\model\auth\service\RoleServiceTest.groovy:
> 23: unable to resolve class AbstractTransactionalTestNGSpringContextTests
>  @ line 23, column 1.
>   @Test
>   ^
>
> 1 error
>
>
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file 'D:\work\i\com\nbos\model\auth\service\build.gradle'
>
> * What went wrong:
> Execution failed for task ':service:compileTestGroovy'.
> Cause: Forked groovyc returned error code: 1
>
> Also attached the build.gradle
>
>
>
>
> apply plugin: 'java'
> apply plugin: 'groovy'
> apply plugin: 'eclipse'
>
>
> def springVersion = '3.0.5.RELEASE'
>
>
> sourceCompatibility = 1.5
> targetCompatibility = 1.5
>
> repositories {
>  flatDir name: 'localRepo', dirs: 'd:/work/mavenRepository'
>  mavenCentral()
> }
>
> dependencies {
>   groovy group: "org.codehaus.groovy", name: 'groovy', version: '1.7.8'
>   compile   project(':model'),
>             project(':da/hibernate'),
>             'commons-lang:commons-lang:2.5',
>             "org.springframework:spring-core:$springVersion",
>             "org.springframework:spring-beans:$springVersion",
>             "org.springframework:spring-context:$springVersion",
>             "org.springframework:spring-expression:$springVersion",
>             "org.springframework:spring-jdbc:$springVersion",
>             "org.springframework:spring-tx:$springVersion",
>             "org.springframework:spring-web:$springVersion"
>   testCompile "org.springframework:spring-test:$springVersion",
>               "org.springframework:spring-context:$springVersion",
>               'org.testng:testng:5.10:jdk15@jar'
>   testRuntime 'net.sourceforge.cobertura:cobertura:1.9.3'
> }
>
> test {
>  useTestNG()
> }
>
>
> Please let me know what could be going wrong..
>
> Thanks in advance
>
>
>
>
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/Compilation-Failures-testCompileGroovy-for-test-which-extends-AbstractTestNGSpringContextTests-tp4262063p4262063.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to