i’m having trouble getting a freshly cloned development copy of openmrs-core to build correctly.
When i run a maven clean install, my build fails this test:
Tests in error:
ModuleUtilTest.checkMandatoryModulesStarted_shouldThrowModuleExceptionIfAMandatoryModuleIsNotStarted
Examining the test logs gives me the following error:
-------------------------------------------------------------------------------
Test set: org.openmrs.module.ModuleUtilTest
-------------------------------------------------------------------------------
Tests run: 43, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.214 sec <<< FAILURE! - in org.openmrs.module.ModuleUtilTest
checkMandatoryModulesStarted_shouldThrowModuleExceptionIfAMandatoryModuleIsNotStarted(org.openmrs.module.ModuleUtilTest) Time elapsed: 0.013 sec <<< ERROR!
java.lang.Exception: Unexpected exception, expected<org.openmrs.module.MandatoryModuleException> but was<java.lang.AssertionError>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at org.openmrs.module.ModuleUtilTest.checkMandatoryModulesStarted_shouldThrowModuleExceptionIfAMandatoryModuleIsNotStarted(ModuleUtilTest.java:47)
I’m using eclipse on arch linux with openjdk8 as the JVM.
Being a newcomer, i’m not familiar with maven or what i could do to fix this. Any help would be greatly appreciated because i am eager to dive into the code and look around.
Can i look at the full command line log? Am also assuming you do not have any local changes and you have the latest upstream changes for the master branch.
-------------------------------------------------------------------------------
Test set: org.openmrs.module.ModuleUtilTest
-------------------------------------------------------------------------------
Tests run: 43, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.206 sec <<< FAILURE! - in org.openmrs.module.ModuleUtilTest
checkMandatoryModulesStarted_shouldThrowModuleExceptionIfAMandatoryModuleIsNotStarted(org.openmrs.module.ModuleUtilTest) Time elapsed: 0.012 sec <<< ERROR!
java.lang.Exception: Unexpected exception, expected<org.openmrs.module.MandatoryModuleException> but was<java.lang.AssertionError>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at org.openmrs.module.ModuleUtilTest.checkMandatoryModulesStarted_shouldThrowModuleExceptionIfAMandatoryModuleIsNotStarted(ModuleUtilTest.java:47)
You might be having an outdated repo, where did you clone from? From your fork or openmrs space in github?
You can run git remote -v and see what the origin is