Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ mvn -Dtest=AlertServiceTest test
- [WARNING]
- [WARNING] Some problems were encountered while building the effective settings
- [WARNING] Unrecognised tag: 'proxies' (position: START_TAG seen ...</repositories>\n\t <proxies>... @34:13) @ C:\Users\Samuel34\.m2\settings.xml, line 34, column 13
- [WARNING]
- [INFO] Scanning for projects...
- [INFO] ------------------------------------------------------------------------
- [INFO] Reactor Build Order:
- [INFO]
- [INFO] OpenMRS
- [INFO] openmrs-tools
- [INFO] openmrs-test
- [INFO] openmrs-api
- [INFO] openmrs-web
- [INFO] openmrs-webapp
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building OpenMRS 2.2.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs ---
- [INFO] Checking for local modifications: skipped.
- [INFO] Updating project files from SCM: skipped.
- [INFO] ShortRevision tag detected. The value is '6'.
- [INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
- [INFO] Working directory: C:\Users\Samuel34\openmrs-core
- [INFO] Storing buildNumber: 11b1cc at timestamp: 1518607228767
- [INFO] ShortRevision tag detected. The value is '6'.
- [INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
- [INFO] Working directory: C:\Users\Samuel34\openmrs-core
- [INFO] Storing buildScmBranch: UNKNOWN
- [INFO]
- [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs ---
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building openmrs-tools 2.2.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-tools ---
- [INFO]
- [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-tools ---
- [INFO]
- [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-tools ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 4 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-tools ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-tools ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] skip non existing resourceDirectory C:\Users\Samuel34\openmrs-core\tools\src\test\resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-tools ---
- [INFO] No sources to compile
- [INFO]
- [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ openmrs-tools ---
- [INFO] No tests to run.
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building openmrs-test 2.2.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-test ---
- [INFO]
- [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-test ---
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building openmrs-api 2.2.0-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-api ---
- [INFO]
- [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-api ---
- [INFO]
- [INFO] --- jacoco-maven-plugin:0.7.8:prepare-agent (prepare-agent) @ openmrs-api ---
- [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
- [INFO]
- [INFO] --- maven-java-formatter-plugin:0.3:format (default) @ openmrs-api ---
- [INFO] Using 'UTF-8' encoding to format source files.
- [INFO] Number of files to be formatted: 988
- [INFO] Successfully formatted: 0 file(s)
- [INFO] Fail to format : 0 file(s)
- [INFO] Skipped : 988 file(s)
- [INFO] Approximate time taken: 61s
- [INFO]
- [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-api ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 1 resource
- [INFO] Copying 124 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-api ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-api ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] Copying 133 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-api ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ openmrs-api ---
- [INFO] Surefire report directory: C:\Users\Samuel34\openmrs-core\api\target\surefire-reports
- -------------------------------------------------------
- T E S T S
- -------------------------------------------------------
- Running org.openmrs.notification.AlertServiceTest
- Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 135.844 sec <<< FAILURE! - in org.openmrs.notification.AlertServiceTest
- notifySuperUsers_shouldAddAnAlertWithMessageOfLengthEqualsTextMaxLength(org.openmrs.notification.AlertServiceTest) Time elapsed: 0.406 sec <<< FAILURE!
- java.lang.AssertionError: expected:<512> but was:<44>
- at org.junit.Assert.fail(Assert.java:88)
- at org.junit.Assert.failNotEquals(Assert.java:834)
- at org.junit.Assert.assertEquals(Assert.java:645)
- at org.junit.Assert.assertEquals(Assert.java:631)
- at org.openmrs.notification.AlertServiceTest.notifySuperUsers_shouldAddAnAlertWithMessageOfLengthEqualsTextMaxLength(AlertServiceTest.java:26)
- notifySuperUsers_shouldAddAnAlertToTheDatabase(org.openmrs.notification.AlertServiceTest) Time elapsed: 0.001 sec <<< FAILURE!
- java.lang.AssertionError: expected:<0> but was:<2>
- at org.junit.Assert.fail(Assert.java:88)
- at org.junit.Assert.failNotEquals(Assert.java:834)
- at org.junit.Assert.assertEquals(Assert.java:645)
- at org.junit.Assert.assertEquals(Assert.java:631)
- at org.openmrs.notification.AlertServiceTest.notifySuperUsers_shouldAddAnAlertToTheDatabase(AlertServiceTest.java:49)
- Results :
- Failed tests:
- AlertServiceTest.notifySuperUsers_shouldAddAnAlertToTheDatabase:49 expected:<0> but was:<2>
- AlertServiceTest.notifySuperUsers_shouldAddAnAlertWithMessageOfLengthEqualsTextMaxLength:26 expected:<512> but was:<44>
- Tests run: 3, Failures: 2, Errors: 0, Skipped: 0
- [INFO] ------------------------------------------------------------------------
- [INFO] Reactor Summary:
- [INFO]
- [INFO] OpenMRS ............................................ SUCCESS [ 20.794 s]
- [INFO] openmrs-tools ...................................... SUCCESS [ 9.401 s]
- [INFO] openmrs-test ....................................... SUCCESS [ 0.014 s]
- [INFO] openmrs-api ........................................ FAILURE [04:45 min]
- [INFO] openmrs-web ........................................ SKIPPED
- [INFO] openmrs-webapp ..................................... SKIPPED
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 05:19 min
- [INFO] Finished at: 2018-02-14T03:25:31-08:00
- [INFO] Final Memory: 23M/291M
- [INFO] ------------------------------------------------------------------------
- [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.
- [ERROR]
- [ERROR] Please refer to C:\Users\Samuel34\openmrs-core\api\target\surefire-reports for the individual test results.
- [ERROR] -> [Help 1]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
- [ERROR]
- [ERROR] After correcting the problems, you can resume the build with the command
- [ERROR] mvn <goals> -rf :openmrs-api
- Samuel34@DESKTOP-3LEMKTV MINGW64 ~/openmrs-core (TRUNK-5189)
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement