tangjialindeMacBook-Pro:spock-examples tangjialin$ ./gradlew test
> Task :test WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/Users/tangjialin/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.5.4/86b94e2949bcff3a13b7ad200e4c5299b52ad994/groovy-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int) WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
BUILD SUCCESSFUL in 4s 4 actionable tasks: 4 executed
tangjialindeMacBook-Pro:spock-examples tangjialin$ ./mvnw clean test [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for net.sudot:spock-examples:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version'for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 48, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ----------------------< net.sudot:spock-examples >---------------------- [INFO] Building spock-examples 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ spock-examples --- [INFO] Deleting /Users/tangjialin/src/java/spock-examples/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spock-examples --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spock-examples --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to /Users/tangjialin/src/java/spock-examples/target/classes [INFO] [INFO] --- gmavenplus-plugin:1.8.0:compile (default) @ spock-examples --- [INFO] No sources specified for compilation. Skipping. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spock-examples --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ spock-examples --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to /Users/tangjialin/src/java/spock-examples/target/test-classes [INFO] [INFO] --- gmavenplus-plugin:1.8.0:compileTests (default) @ spock-examples --- [INFO] Using isolated classloader, without GMavenPlus classpath. [INFO] Using Groovy 2.5.4 to perform compileTests. [INFO] Compiled 2 files. [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ spock-examples --- [INFO] Surefire report directory: /Users/tangjialin/src/java/spock-examples/target/surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- Running net.sudot.spockexamples.service.StudentServiceSpockTest WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/Users/tangjialin/.m2/repository/org/codehaus/groovy/groovy/2.5.4/groovy-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int) WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.417 sec Running net.sudot.spockexamples.service.StudentServiceJUnitTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.839 s [INFO] Finished at: 2019-10-20T23:12:46+08:00 [INFO] ------------------------------------------------------------------------