Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.74 KB | None | 0 0
  1. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/junit/junit/3.8.2/junit-3.8.2.jar (121 kB at 31 kB/s)
  2. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/com/google/collections/google-collections/1.0/google-collections-1.0.jar (640 kB at 143 kB/s)
  3. [INFO] Changes detected - recompiling the module!
  4. [INFO] Compiling 6 source files to /Users/gilbertagbodamakou/mymodule/api/target/classes
  5. [INFO]
  6. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mymodule-api ---
  7. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  8. [INFO] Copying 0 resource
  9. [INFO] Copying 0 resource
  10. [INFO]
  11. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mymodule-api ---
  12. [INFO] Changes detected - recompiling the module!
  13. [INFO] Compiling 2 source files to /Users/gilbertagbodamakou/mymodule/api/target/test-classes
  14. [INFO]
  15. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mymodule-api ---
  16. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.pom
  17. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.pom (3.0 kB at 1.4 kB/s)
  18. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.pom
  19. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.pom (2.5 kB at 1.6 kB/s)
  20. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.pom
  21. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.pom (5.5 kB at 3.4 kB/s)
  22. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom
  23. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom (1.6 kB at 984 B/s)
  24. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugin-tools/maven-plugin-tools/3.1/maven-plugin-tools-3.1.pom
  25. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugin-tools/maven-plugin-tools/3.1/maven-plugin-tools-3.1.pom (16 kB at 9.5 kB/s)
  26. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.jar
  27. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.jar
  28. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.jar
  29. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/maven-toolchain/2.0.9/maven-toolchain-2.0.9.jar
  30. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar
  31. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.jar (35 kB at 19 kB/s)
  32. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/maven-toolchain/2.0.9/maven-toolchain-2.0.9.jar (38 kB at 21 kB/s)
  33. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.jar
  34. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-api/2.12.4/surefire-api-2.12.4.jar (118 kB at 63 kB/s)
  35. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.jar (263 kB at 131 kB/s)
  36. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar (232 kB at 112 kB/s)
  37. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.jar (14 kB at 4.2 kB/s)
  38. [INFO] Surefire report directory: /Users/gilbertagbodamakou/mymodule/api/target/surefire-reports
  39. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.pom
  40. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.pom (2.4 kB at 1.5 kB/s)
  41. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-providers/2.12.4/surefire-providers-2.12.4.pom
  42. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-providers/2.12.4/surefire-providers-2.12.4.pom (2.3 kB at 1.5 kB/s)
  43. Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.jar
  44. Downloaded from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.jar (37 kB at 23 kB/s)
  45.  
  46. -------------------------------------------------------
  47.  T E S T S
  48. -------------------------------------------------------
  49. Running org.openmrs.module.mymodule.api.MyModuleNameServiceTest
  50. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.552 sec
  51. Running org.openmrs.module.mymodule.api.dao.MyModuleNameDaoTest
  52. Tests run: 2, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 0.275 sec <<< FAILURE!
  53. org.openmrs.module.mymodule.api.dao.MyModuleNameDaoTest  Time elapsed: 0.275 sec  <<< ERROR!
  54. org.openmrs.api.APIException: contextDAO is null
  55.     at org.openmrs.api.context.Context.getContextDAO(Context.java:167)
  56.     at org.openmrs.api.context.Context.closeSession(Context.java:739)
  57.     at org.openmrs.test.BaseContextSensitiveTest.closeSessionAfterEachClass(BaseContextSensitiveTest.java:782)
  58.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  59.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  60.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  61.     at java.lang.reflect.Method.invoke(Method.java:498)
  62.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  63.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  64.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  65.     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
  66.     at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  67.     at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  68.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  69.     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  70.     at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  71.     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  72.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  73.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  74.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  75.     at java.lang.reflect.Method.invoke(Method.java:498)
  76.     at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  77.     at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  78.     at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  79.     at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  80.     at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  81.  
  82.  
  83. Results :
  84.  
  85. Tests in error:
  86.   org.openmrs.module.mymodule.api.dao.MyModuleNameDaoTest: contextDAO is null
  87.  
  88. Tests run: 3, Failures: 0, Errors: 1, Skipped: 1
  89.  
  90. [INFO]
  91. [INFO] ------------------------------------------------------------------------
  92. [INFO] Skipping MyModuleName
  93. [INFO] This project has been banned from the build due to previous failures.
  94. [INFO] ------------------------------------------------------------------------
  95. [INFO] ------------------------------------------------------------------------
  96. [INFO] Reactor Summary for MyModuleName 1.0.0-SNAPSHOT:
  97. [INFO]
  98. [INFO] MyModuleName ....................................... SUCCESS [02:10 min]
  99. [INFO] MyModuleName API ................................... FAILURE [01:13 min]
  100. [INFO] MyModuleName OMOD .................................. SKIPPED
  101. [INFO] ------------------------------------------------------------------------
  102. [INFO] BUILD FAILURE
  103. [INFO] ------------------------------------------------------------------------
  104. [INFO] Total time:  04:01 min
  105. [INFO] Finished at: 2019-08-26T13:06:26+01:00
  106. [INFO] ------------------------------------------------------------------------
  107. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project mymodule-api: There are test failures.
  108. [ERROR]
  109. [ERROR] Please refer to /Users/gilbertagbodamakou/mymodule/api/target/surefire-reports for the individual test results.
  110. [ERROR] -> [Help 1]
  111. [ERROR]
  112. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  113. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  114. [ERROR]
  115. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  116. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  117. [ERROR]
  118. [ERROR] After correcting the problems, you can resume the build with the command
  119. [ERROR]   mvn <goals> -rf :mymodule-api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement