Without seeing the source code it's hard to tell what the problem is. Maybe
you forgot the import for AbstractTransactionalTestNGSpringContextTests.

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org


vgajula 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-tp4262063p4262638.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