2013-07-27 3 views
0

죄송합니다. 여기 Grails 멍청한데. 테스트 코드에서 JUnit에 대한 참조가있는 프로젝트를보고 있습니다. 나는 JUnit이 classpath에 어떻게 추가되는지 알아 내려고하고있다. BuildConfig.groovy 파일로 이동하여 JUnit에 대한 명시적인 참조를 볼 수 없습니다.jar 파일에 대한 종속성은 어디에 설정됩니까?

종속성은 다음과 같습니다의 JUnit 항아리 초래 될 수 있는지에

plugins { 

    test(":spock:0.7") { 
     exclude "spock-grails-support" 
    } 

    runtime ":jquery:1.7.2" 
    runtime ":resources:1.1.6" 

    // Uncomment these (or add new ones) to enable additional resources capabilities 
    //runtime ":zipped-resources:1.0" 
    //runtime ":cached-resources:1.0" 
    //runtime ":yui-minify-resources:0.1.4" 

    build ":tomcat:$grailsVersion" 

    compile ":geoip:0.2" 
    compile ':cache:1.0.0' 
    compile ":quartz:1.0-RC9" 
    //compile ":quartz-monitor:0.3-RC2" 
    compile ":grails-melody:1.45" 

    compile ':webflow:2.0.0', { 
     exclude 'grails-webflow' 
     } 
} 

그래서 어떤 아이디어 나 어떻게 그것이 무엇인지 알 것 :

dependencies { 
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. 

    test "org.spockframework:spock-grails-support:0.7-groovy-2.0" 

    runtime 'postgresql:postgresql:9.0-801.jdbc4' 
    compile 'com.thoughtworks.xstream:xstream:1.4.2' 
    compile 'spy:spymemcached:2.8.9' 
    compile "org.grails:grails-webflow:$grailsVersion" 
    compile 'org.infinispan:infinispan-core:5.1.0.CR2' 
} 

플러그인 종속성은?

감사합니다.

답변

3

JUnit은 기본적으로 grails 패키징의 일부입니다. 당신은 당신이 프로젝트에 grails dependency-report을 실행하여 당신은 또한이 프로젝트에 추가하는 방법을 확인할 수 있습니다

GRAILS_HOME\lib\junit\junit\jars

에 grails.org에서 다운로드 한 것 Grails에 번들의 lib에서의 JUnit 항아리를 찾을 수 있어야하고 테스트 범위에서 junit jar를 찾으십시오.

Grails 2.2.3과 함께 제공되는 junit의 최신 버전은 junit-4.10입니다.

관련 문제