Builds, runs unit tests and deploys artifacts to nexus repo

Build: #40 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Test results

  • 2 tests in total
  • 2 tests failed
  • 2 failures are new
  • < 1 second taken in total.

Build 40 has the following 2 errors: 2 new failure(s) occurred since the previous build.

New test failures 2
Status Test Duration
Collapse Failed HtmlWidgetsServiceTest getAllMetadataByType_shouldReturnOnlyUnretired History
< 1 sec
java.lang.IllegalStateException: Failed to load ApplicationContext
	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:201)
	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:255)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:111)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:148)
	at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
(47 more lines...)
Collapse Failed HtmlWidgetsServiceTest org.openmrs.module.htmlwidgets.service.HtmlWidgetsServiceTest History
< 1 sec
org.openmrs.api.APIException: contextDAO is null
	at org.openmrs.api.context.Context.getContextDAO(Context.java:161)
	at org.openmrs.api.context.Context.closeSession(Context.java:682)
	at org.openmrs.test.BaseContextSensitiveTest.closeSessionAfterEachClass(BaseContextSensitiveTest.java:608)
	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)
(14 more lines...)