Advertisement
Guest User

Untitled

a guest
Feb 14th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.55 KB | None | 0 0
  1. $ mvn -Dtest=AlertServiceTest test
  2. [WARNING]
  3. [WARNING] Some problems were encountered while building the effective settings
  4. [WARNING] Unrecognised tag: 'proxies' (position: START_TAG seen ...</repositories>\n\t <proxies>... @34:13) @ C:\Users\Samuel34\.m2\settings.xml, line 34, column 13
  5. [WARNING]
  6. [INFO] Scanning for projects...
  7. [INFO] ------------------------------------------------------------------------
  8. [INFO] Reactor Build Order:
  9. [INFO]
  10. [INFO] OpenMRS
  11. [INFO] openmrs-tools
  12. [INFO] openmrs-test
  13. [INFO] openmrs-api
  14. [INFO] openmrs-web
  15. [INFO] openmrs-webapp
  16. [INFO]
  17. [INFO] ------------------------------------------------------------------------
  18. [INFO] Building OpenMRS 2.2.0-SNAPSHOT
  19. [INFO] ------------------------------------------------------------------------
  20. [INFO]
  21. [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs ---
  22. [INFO] Checking for local modifications: skipped.
  23. [INFO] Updating project files from SCM: skipped.
  24. [INFO] ShortRevision tag detected. The value is '6'.
  25. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
  26. [INFO] Working directory: C:\Users\Samuel34\openmrs-core
  27. [INFO] Storing buildNumber: 11b1cc at timestamp: 1518607228767
  28. [INFO] ShortRevision tag detected. The value is '6'.
  29. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
  30. [INFO] Working directory: C:\Users\Samuel34\openmrs-core
  31. [INFO] Storing buildScmBranch: UNKNOWN
  32. [INFO]
  33. [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs ---
  34. [INFO]
  35. [INFO] ------------------------------------------------------------------------
  36. [INFO] Building openmrs-tools 2.2.0-SNAPSHOT
  37. [INFO] ------------------------------------------------------------------------
  38. [INFO]
  39. [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-tools ---
  40. [INFO]
  41. [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-tools ---
  42. [INFO]
  43. [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-tools ---
  44. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  45. [INFO] Copying 4 resources
  46. [INFO]
  47. [INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-tools ---
  48. [INFO] Nothing to compile - all classes are up to date
  49. [INFO]
  50. [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-tools ---
  51. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  52. [INFO] skip non existing resourceDirectory C:\Users\Samuel34\openmrs-core\tools\src\test\resources
  53. [INFO]
  54. [INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-tools ---
  55. [INFO] No sources to compile
  56. [INFO]
  57. [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ openmrs-tools ---
  58. [INFO] No tests to run.
  59. [INFO]
  60. [INFO] ------------------------------------------------------------------------
  61. [INFO] Building openmrs-test 2.2.0-SNAPSHOT
  62. [INFO] ------------------------------------------------------------------------
  63. [INFO]
  64. [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-test ---
  65. [INFO]
  66. [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-test ---
  67. [INFO]
  68. [INFO] ------------------------------------------------------------------------
  69. [INFO] Building openmrs-api 2.2.0-SNAPSHOT
  70. [INFO] ------------------------------------------------------------------------
  71. [INFO]
  72. [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-api ---
  73. [INFO]
  74. [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-api ---
  75. [INFO]
  76. [INFO] --- jacoco-maven-plugin:0.7.8:prepare-agent (prepare-agent) @ openmrs-api ---
  77. [INFO] argLine set to -javaagent:C:\\Users\\Samuel34\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.8\\org.jacoco.agent-0.7.8-runtime.jar=destfile=C:\\Users\\Samuel34\\openmrs-core\\api\\target\\jacoco.exec,includes=org/openmrs/** -Duser.language=en -Duser.region=US -Xmx2g
  78. [INFO]
  79. [INFO] --- maven-java-formatter-plugin:0.3:format (default) @ openmrs-api ---
  80. [INFO] Using 'UTF-8' encoding to format source files.
  81. [INFO] Number of files to be formatted: 988
  82. [INFO] Successfully formatted: 0 file(s)
  83. [INFO] Fail to format : 0 file(s)
  84. [INFO] Skipped : 988 file(s)
  85. [INFO] Approximate time taken: 61s
  86. [INFO]
  87. [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-api ---
  88. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  89. [INFO] Copying 1 resource
  90. [INFO] Copying 124 resources
  91. [INFO]
  92. [INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-api ---
  93. [INFO] Nothing to compile - all classes are up to date
  94. [INFO]
  95. [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-api ---
  96. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  97. [INFO] Copying 133 resources
  98. [INFO]
  99. [INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-api ---
  100. [INFO] Nothing to compile - all classes are up to date
  101. [INFO]
  102. [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ openmrs-api ---
  103. [INFO] Surefire report directory: C:\Users\Samuel34\openmrs-core\api\target\surefire-reports
  104.  
  105. -------------------------------------------------------
  106. T E S T S
  107. -------------------------------------------------------
  108. Running org.openmrs.notification.AlertServiceTest
  109. Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 135.844 sec <<< FAILURE! - in org.openmrs.notification.AlertServiceTest
  110. notifySuperUsers_shouldAddAnAlertWithMessageOfLengthEqualsTextMaxLength(org.openmrs.notification.AlertServiceTest) Time elapsed: 0.406 sec <<< FAILURE!
  111. java.lang.AssertionError: expected:<512> but was:<44>
  112. at org.junit.Assert.fail(Assert.java:88)
  113. at org.junit.Assert.failNotEquals(Assert.java:834)
  114. at org.junit.Assert.assertEquals(Assert.java:645)
  115. at org.junit.Assert.assertEquals(Assert.java:631)
  116. at org.openmrs.notification.AlertServiceTest.notifySuperUsers_shouldAddAnAlertWithMessageOfLengthEqualsTextMaxLength(AlertServiceTest.java:26)
  117.  
  118. notifySuperUsers_shouldAddAnAlertToTheDatabase(org.openmrs.notification.AlertServiceTest) Time elapsed: 0.001 sec <<< FAILURE!
  119. java.lang.AssertionError: expected:<0> but was:<2>
  120. at org.junit.Assert.fail(Assert.java:88)
  121. at org.junit.Assert.failNotEquals(Assert.java:834)
  122. at org.junit.Assert.assertEquals(Assert.java:645)
  123. at org.junit.Assert.assertEquals(Assert.java:631)
  124. at org.openmrs.notification.AlertServiceTest.notifySuperUsers_shouldAddAnAlertToTheDatabase(AlertServiceTest.java:49)
  125.  
  126.  
  127. Results :
  128.  
  129. Failed tests:
  130. AlertServiceTest.notifySuperUsers_shouldAddAnAlertToTheDatabase:49 expected:<0> but was:<2>
  131. AlertServiceTest.notifySuperUsers_shouldAddAnAlertWithMessageOfLengthEqualsTextMaxLength:26 expected:<512> but was:<44>
  132.  
  133. Tests run: 3, Failures: 2, Errors: 0, Skipped: 0
  134.  
  135. [INFO] ------------------------------------------------------------------------
  136. [INFO] Reactor Summary:
  137. [INFO]
  138. [INFO] OpenMRS ............................................ SUCCESS [ 20.794 s]
  139. [INFO] openmrs-tools ...................................... SUCCESS [ 9.401 s]
  140. [INFO] openmrs-test ....................................... SUCCESS [ 0.014 s]
  141. [INFO] openmrs-api ........................................ FAILURE [04:45 min]
  142. [INFO] openmrs-web ........................................ SKIPPED
  143. [INFO] openmrs-webapp ..................................... SKIPPED
  144. [INFO] ------------------------------------------------------------------------
  145. [INFO] BUILD FAILURE
  146. [INFO] ------------------------------------------------------------------------
  147. [INFO] Total time: 05:19 min
  148. [INFO] Finished at: 2018-02-14T03:25:31-08:00
  149. [INFO] Final Memory: 23M/291M
  150. [INFO] ------------------------------------------------------------------------
  151. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project openmrs-api: There are test failures.
  152. [ERROR]
  153. [ERROR] Please refer to C:\Users\Samuel34\openmrs-core\api\target\surefire-reports for the individual test results.
  154. [ERROR] -> [Help 1]
  155. [ERROR]
  156. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  157. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  158. [ERROR]
  159. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  160. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  161. [ERROR]
  162. [ERROR] After correcting the problems, you can resume the build with the command
  163. [ERROR] mvn <goals> -rf :openmrs-api
  164.  
  165. Samuel34@DESKTOP-3LEMKTV MINGW64 ~/openmrs-core (TRUNK-5189)
  166. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement