I had the following test failure when building openmrs core.
Test set: org.openmrs.api.UserServiceTest
-------------------------------------------------------------------------------
Tests run: 80, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 4.811 sec <<< FAILURE! - in org.openmrs.api.UserServiceTest
getAllPrivileges_shouldReturnAllPrivilegesInTheSystem(org.openmrs.api.UserServiceTest) Time elapsed: 0.07 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<1> but was:<150>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.Assert.assertEquals(Assert.java:241)
at org.openmrs.api.UserServiceTest.getAllPrivileges_shouldReturnAllPrivilegesInTheSystem(UserServiceTest.java:490)
I have run the test case manually in eclipse but i don’t get any failures. I don’t know why it fails during installation.
I don’t know if i can answer some of those questions since i am new to open source. But i was following instructions on the getting started as a developer. I just did a git clone on the url provided by the manual (https://github.com/openmrs/openmrs-core.git) so i can’t tell which version of open mrs i was building.
java -version
java version “1.8.0_45”
Java™ SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot™ 64-Bit Server VM (build 25.45-b02, mixed mode)
This is a strange test failure. Are you available on IRC such that we can
look into this together?
Just ping dkayiwa when you are there.
https://wiki.openmrs.org/display/IRC/Home