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

Build: #28 failed

Job: Build and test Module failed

Stages & jobs

  1. Test module

  2. Release

    Requires a user to start manually

Job result summary

Completed
Duration
52 seconds
Agent
yue.openmrs.org
Revision
d4c09f30f8a49f60fb3b012acb3b8eb53a07f774 d4c09f30f8a49f60fb3b012acb3b8eb53a07f774
Total tests
76
Fixed in
#29 (Code changes detected)

Tests

  • 76 tests in total
  • 19 tests failed
  • 19 failures are new
  • 19 seconds taken in total.
New test failures 19
Status Test Duration
Collapse Failed EncounterAllFiltersTest getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser History
< 1 sec
java.lang.AssertionError: expected:<2> but was:<4>
	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.module.datafilter.location.EncounterAllFiltersTest.getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser(EncounterAllFiltersTest.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterAllFiltersTest getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAnyAccess History
< 1 sec
java.lang.AssertionError: expected:<0> but was:<4>
	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.module.datafilter.location.EncounterAllFiltersTest.getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAnyAccess(EncounterAllFiltersTest.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterEncTypeViewPrivilegeBasedFilterTest getEncounters_shouldExcludeEncountersThatRequireAPrivilege History
< 1 sec
java.lang.AssertionError: expected:<3> but was:<4>
	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.module.datafilter.location.EncounterEncTypeViewPrivilegeBasedFilterTest.getEncounters_shouldExcludeEncountersThatRequireAPrivilege(EncounterEncTypeViewPrivilegeBasedFilterTest.java:51)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterEncTypeViewPrivilegeBasedFilterTest getEncounters_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt History
< 1 sec
java.lang.AssertionError: expected:<3> but was:<4>
	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.module.datafilter.location.EncounterEncTypeViewPrivilegeBasedFilterTest.getEncounters_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt(EncounterEncTypeViewPrivilegeBasedFilterTest.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterEncTypeViewPrivilegeBasedFilterTest getVisits_shouldExcludePrivilegedEncountersOfTheVisitIfTheUserHasNoRequiredPrivilege History
< 1 sec
java.lang.AssertionError: expected:<2> but was:<4>
	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.module.datafilter.location.EncounterEncTypeViewPrivilegeBasedFilterTest.getVisits_shouldExcludePrivilegedEncountersOfTheVisitIfTheUserHasNoRequiredPrivilege(EncounterEncTypeViewPrivilegeBasedFilterTest.java:111)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterLocationBasedFilterTest getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser History
< 1 sec
java.lang.AssertionError: expected:<2> but was:<3>
	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.module.datafilter.location.EncounterLocationBasedFilterTest.getEncounters_shouldReturnEncountersBelongingToPatientsAccessibleToTheUser(EncounterLocationBasedFilterTest.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed EncounterLocationBasedFilterTest getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAccessToAnyBasis History
< 1 sec
java.lang.AssertionError: expected:<0> but was:<3>
	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.module.datafilter.location.EncounterLocationBasedFilterTest.getEncounters_shouldReturnNoEncountersIfTheUserIsNotGrantedAccessToAnyBasis(EncounterLocationBasedFilterTest.java:44)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsEncTypeViewPrivilegeBasedFilterTest getObs_shouldExcludeEncountersThatRequireAPrivilege History
< 1 sec
java.lang.AssertionError: expected:<0> but was:<1>
	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.module.datafilter.location.ObsEncTypeViewPrivilegeBasedFilterTest.getObs_shouldExcludeEncountersThatRequireAPrivilege(ObsEncTypeViewPrivilegeBasedFilterTest.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsEncTypeViewPrivilegeBasedFilterTest getObs_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt History
< 1 sec
java.lang.AssertionError: expected:<0> but was:<1>
	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.module.datafilter.location.ObsEncTypeViewPrivilegeBasedFilterTest.getObs_shouldIncludeEncountersThatRequireAPrivilegeAndTheUserHasIt(ObsEncTypeViewPrivilegeBasedFilterTest.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsLocationBasedFilterTest getObs_shouldReturnNoObsIfTheUserIsNotGrantedAccessToAnyBasis History
< 1 sec
java.lang.AssertionError: expected:<0> but was:<3>
	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.module.datafilter.location.ObsLocationBasedFilterTest.getObs_shouldReturnNoObsIfTheUserIsNotGrantedAccessToAnyBasis(ObsLocationBasedFilterTest.java:58)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed ObsLocationBasedFilterTest getObs_shouldReturnObsBelongingToPatientsAccessibleToTheUser History
< 1 sec
java.lang.AssertionError: expected:<2> but was:<3>
	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.module.datafilter.location.ObsLocationBasedFilterTest.getObs_shouldReturnObsBelongingToPatientsAccessibleToTheUser(ObsLocationBasedFilterTest.java:66)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed PatientLocationBasedFilterTest getAllPatients_shouldReturnNoPatientsIfTheUserIsNotGrantedAccessToAnyBasis History
< 1 sec
java.lang.AssertionError: expected:<0> but was:<11>
	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.module.datafilter.location.PatientLocationBasedFilterTest.getAllPatients_shouldReturnNoPatientsIfTheUserIsNotGrantedAccessToAnyBasis(PatientLocationBasedFilterTest.java:72)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed PatientLocationBasedFilterTest getAllPatients_shouldReturnPatientsAccessibleToTheUser History
< 1 sec
java.lang.AssertionError: expected:<3> but was:<11>
	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.module.datafilter.location.PatientLocationBasedFilterTest.getAllPatients_shouldReturnPatientsAccessibleToTheUser(PatientLocationBasedFilterTest.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnNoPatientsIfTheUserIsNotGrantedAccessToAnyBasis History
< 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnPatientsByIdentifierAccessibleToTheUser History
< 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnPatientsByNameAccessibleToTheUser History
< 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed PatientLocationBasedFilterTest getPatients_shouldReturnPatientsByPersonAttributeAccessibleToTheUser History
< 1 sec
org.hibernate.search.exception.SearchException: HSEARCH000115: Unknown @FullTextFilter: 'datafilter_locationBasedPatientFullTextFilter'
	at org.hibernate.search.query.engine.impl.HSQueryImpl.enableFullTextFilter(HSQueryImpl.java:389)
	at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.enableFullTextFilter(FullTextQueryImpl.java:318)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:81)
	at org.openmrs.module.datafilter.location.FullTextQueryCreatedEventListener.onApplicationEvent(FullTextQueryCreatedEventListener.java:34)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)
(80 more lines...)
Collapse Failed VisitLocationBasedFilterTest getVisits_shouldReturnNoVisitsIfTheUserIsNotGrantedAccessToAnyBasis History
< 1 sec
java.lang.AssertionError: expected:<0> but was:<3>
	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.module.datafilter.location.VisitLocationBasedFilterTest.getVisits_shouldReturnNoVisitsIfTheUserIsNotGrantedAccessToAnyBasis(VisitLocationBasedFilterTest.java:49)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)
Collapse Failed VisitLocationBasedFilterTest getVisits_shouldReturnVisitsBelongingToPatientsAccessibleToTheUser History
< 1 sec
java.lang.AssertionError: expected:<2> but was:<3>
	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.module.datafilter.location.VisitLocationBasedFilterTest.getVisits_shouldReturnVisitsBelongingToPatientsAccessibleToTheUser(VisitLocationBasedFilterTest.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
(37 more lines...)