Runs unit test and deploys artifacts to maven repo. More details of the release in https://wiki.openmrs.org/x/i4DTAw

Build: #1447 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Test results

  • 16 tests in total
  • 14 tests failed
  • 14 failures are new
  • 9 seconds taken in total.

Build 1,447 has the following 14 errors: 14 new failure(s) occurred since the previous build.

New test failures 14
Status Test Duration
Collapse Failed CodedOrFreeTextAnswerListWidgetTest testViewNonEmptyList History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/diagnosis/CodedOrFreeTextAnswer
	at org.openmrs.module.coreapps.htmlformentry.CodedOrFreeTextAnswerListWidgetTest.testViewNonEmptyList(CodedOrFreeTextAnswerListWidgetTest.java:95)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
(32 more lines...)
Collapse Failed EncounterDiagnosesTagHandlerComponentTest org.openmrs.module.coreapps.htmlformentry.EncounterDiagnosesTagHandlerComponentTest History
< 1 sec
org.openmrs.api.APIException: contextDAO is null
	at org.openmrs.api.context.Context.getContextDAO(Context.java:173)
	at org.openmrs.api.context.Context.closeSession(Context.java:737)
	at org.openmrs.test.BaseContextSensitiveTest.closeSessionAfterEachClass(BaseContextSensitiveTest.java:709)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
(19 more lines...)
Collapse Failed EncounterDiagnosesTagHandlerComponentTest testHandleSubmissionHandlesValidSubmissionEditingForm History
< 1 sec
java.lang.IllegalStateException: Failed to load ApplicationContext
	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
(58 more lines...)
Collapse Failed EncounterDiagnosesTagHandlerComponentTest testHandleSubmissionHandlesValidSubmissionEnteringForm History
< 1 sec
java.lang.IllegalStateException: Failed to load ApplicationContext
	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
(58 more lines...)
Collapse Failed EncounterDiagnosesTagHandlerTest getSubstitution_shouldAFailIfInvalidValueForPriorDiagnosesAttributeValueInvalid History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/visit/VisitDomainWrapper
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2534)
	at java.lang.Class.getDeclaredMethods(Class.java:1855)
	at org.mockito.cglib.core.ReflectUtils.addAllMethods(ReflectUtils.java:349)
	at org.mockito.cglib.proxy.Enhancer.getMethods(Enhancer.java:427)
	at org.mockito.cglib.proxy.Enhancer.generateClass(Enhancer.java:457)
	at org.mockito.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
(50 more lines...)
Collapse Failed EncounterDiagnosesTagHandlerTest getSubstitution_shouldAddEncounterDiagnosisElementToFormSubmissionController History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/visit/VisitDomainWrapper
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2534)
	at java.lang.Class.getDeclaredMethods(Class.java:1855)
	at org.mockito.cglib.core.ReflectUtils.addAllMethods(ReflectUtils.java:349)
	at org.mockito.cglib.proxy.Enhancer.getMethods(Enhancer.java:427)
	at org.mockito.cglib.proxy.Enhancer.generateClass(Enhancer.java:457)
	at org.mockito.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
(50 more lines...)
Collapse Failed EncounterDispositionTagHandlerComponentTest org.openmrs.module.coreapps.htmlformentry.EncounterDispositionTagHandlerComponentTest History
1 sec
org.openmrs.api.APIException: contextDAO is null
	at org.openmrs.api.context.Context.getContextDAO(Context.java:173)
	at org.openmrs.api.context.Context.closeSession(Context.java:737)
	at org.openmrs.test.BaseContextSensitiveTest.closeSessionAfterEachClass(BaseContextSensitiveTest.java:709)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
(19 more lines...)
Collapse Failed EncounterDispositionTagHandlerComponentTest testEnteringForm History
3 secs
java.lang.IllegalStateException: Failed to load ApplicationContext
	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
(58 more lines...)
Collapse Failed EncounterDispositionTagHandlerComponentTest testFormOnlyShowsDispositionsInDescriptor History
1 sec
java.lang.IllegalStateException: Failed to load ApplicationContext
	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
(58 more lines...)
Collapse Failed ParseEncounterToJsonTest userShouldEditEncounterWhenDoesNotHavePrivilegeButParticipateInTheEncounter History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/encounter/EncounterDomainWrapper
	at org.openmrs.module.coreapps.parser.ParseEncounterToJson.createEncounterJSON(ParseEncounterToJson.java:37)
	at org.openmrs.module.coreapps.parser.ParseEncounterToJsonTest.userShouldEditEncounterWhenDoesNotHavePrivilegeButParticipateInTheEncounter(ParseEncounterToJsonTest.java:100)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
(30 more lines...)
Collapse Failed ParseEncounterToJsonTest userShouldEditEncounterWhenHasPrivilegeAndParticipatedInTheEncounter History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/encounter/EncounterDomainWrapper
	at org.openmrs.module.coreapps.parser.ParseEncounterToJson.createEncounterJSON(ParseEncounterToJson.java:37)
	at org.openmrs.module.coreapps.parser.ParseEncounterToJsonTest.userShouldEditEncounterWhenHasPrivilegeAndParticipatedInTheEncounter(ParseEncounterToJsonTest.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
(30 more lines...)
Collapse Failed ParseEncounterToJsonTest userShouldEditEncounterWhenHasPrivilegeButDidNotParticipatedInTheEncounter History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/encounter/EncounterDomainWrapper
	at org.openmrs.module.coreapps.parser.ParseEncounterToJson.createEncounterJSON(ParseEncounterToJson.java:37)
	at org.openmrs.module.coreapps.parser.ParseEncounterToJsonTest.userShouldEditEncounterWhenHasPrivilegeButDidNotParticipatedInTheEncounter(ParseEncounterToJsonTest.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
(41 more lines...)
Collapse Failed ParseEncounterToJsonTest userShouldEditEncounterWhenIsAdmin History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/encounter/EncounterDomainWrapper
	at org.openmrs.module.coreapps.parser.ParseEncounterToJson.createEncounterJSON(ParseEncounterToJson.java:37)
	at org.openmrs.module.coreapps.parser.ParseEncounterToJsonTest.userShouldEditEncounterWhenIsAdmin(ParseEncounterToJsonTest.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
(30 more lines...)
Collapse Failed ParseEncounterToJsonTest userShouldNotEditAnEncounterWhenDoesNotHaveThePrivilegeAndDidNotParticipatedInTheEncounter History
< 1 sec
java.lang.NoClassDefFoundError: org/openmrs/module/emrapi/encounter/EncounterDomainWrapper
	at org.openmrs.module.coreapps.parser.ParseEncounterToJson.createEncounterJSON(ParseEncounterToJson.java:37)
	at org.openmrs.module.coreapps.parser.ParseEncounterToJsonTest.userShouldNotEditAnEncounterWhenDoesNotHaveThePrivilegeAndDidNotParticipatedInTheEncounter(ParseEncounterToJsonTest.java:128)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
(30 more lines...)