Sonar metrics for OpenMRS Core Master

Build: #588 failed Scheduled

Stages & jobs

  1. Sonar Analysis

Test results

  • 3,420 tests in total
  • 8 tests failed
  • 8 failures are new
  • 35 tests were quarantined / skipped
  • 10 minutes taken in total.
New test failures 8
Status Test View job Duration
Collapse Failed SchedulerFormControllerTest onSubmit_shouldNotRescheduleATaskThatIsNotCurrentlyScheduled
Sonar Full Analysis < 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.internal.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:975)
	at org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:402)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(28 more lines...)
Collapse Failed SchedulerFormControllerTest onSubmit_shouldNotRescheduleAnExecutingTask
Sonar Full Analysis < 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.internal.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:975)
	at org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:402)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(28 more lines...)
Collapse Failed ConceptFormControllerTest shouldAddConceptWithAllNamingSpecified
Sonar Full Analysis < 1 sec
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertNotNull(Assert.java:621)
	at org.junit.Assert.assertNotNull(Assert.java:631)
	at org.openmrs.web.controller.ConceptFormControllerTest.shouldAddConceptWithAllNamingSpecified(ConceptFormControllerTest.java:346)
Collapse Failed ConceptFormControllerTest shouldUpdateConceptWithShortNameAlreadyInSynonymList
Sonar Full Analysis < 1 sec
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertNotNull(Assert.java:621)
	at org.junit.Assert.assertNotNull(Assert.java:631)
	at org.openmrs.web.controller.ConceptFormControllerTest.shouldUpdateConceptWithShortNameAlreadyInSynonymList(ConceptFormControllerTest.java:447)
Collapse Failed ConceptFormControllerTest shouldAddConceptWithNameAndShortNameAndDescriptionSpecifiedToNumericConcepts
Sonar Full Analysis < 1 sec
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertNotNull(Assert.java:621)
	at org.junit.Assert.assertNotNull(Assert.java:631)
	at org.openmrs.web.controller.ConceptFormControllerTest.shouldAddConceptWithNameAndShortNameAndDescriptionSpecifiedToNumericConcepts(ConceptFormControllerTest.java:295)
Collapse Failed ConceptFormControllerTest shouldAddConceptWithNameAndShortNameSpecified
Sonar Full Analysis < 1 sec
java.lang.AssertionError: expected:<1> but was:<0>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:555)
	at org.junit.Assert.assertEquals(Assert.java:542)
	at org.openmrs.web.controller.ConceptFormControllerTest.shouldAddConceptWithNameAndShortNameSpecified(ConceptFormControllerTest.java:206)
Collapse Failed ConceptFormControllerTest shouldUpdateConceptWithNameAlreadyInSynonymList
Sonar Full Analysis < 1 sec
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertNotNull(Assert.java:621)
	at org.junit.Assert.assertNotNull(Assert.java:631)
	at org.openmrs.web.controller.ConceptFormControllerTest.shouldUpdateConceptWithNameAlreadyInSynonymList(ConceptFormControllerTest.java:398)
Collapse Failed ConceptFormControllerTest shouldAddConceptWithNameAndShortNameAndDescriptionSpecifiedToCodeConcepts
Sonar Full Analysis < 1 sec
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertNotNull(Assert.java:621)
	at org.junit.Assert.assertNotNull(Assert.java:631)
	at org.openmrs.web.controller.ConceptFormControllerTest.shouldAddConceptWithNameAndShortNameAndDescriptionSpecifiedToCodeConcepts(ConceptFormControllerTest.java:250)
Skipped tests 35
Status Test Failing since View job
Skipped OpenmrsProfileExcludeFilterTest shouldBeIgnoredIfOpenmrsVersionDoesNotMatch
Sonar Full Analysis
Skipped OpenmrsProfileExcludeFilterTest shouldBeIgnoredIfModuleDoesNotMatch
Sonar Full Analysis
Skipped AdministrationServiceTest setImplementationId_shouldOverwriteImplementationIdInDatabaseIfExists
Sonar Full Analysis
Skipped AdministrationServiceTest setImplementationId_shouldSetUuidOnImplementationIdGlobalProperty
Sonar Full Analysis
Skipped AdministrationServiceTest setImplementationId_shouldCreateImplementationIdInDatabase
Sonar Full Analysis
Skipped AdministrationServiceTest getPresentationLocales_shouldReturnAtLeastOneLocaleIfNoLocalesDefinedInDatabaseYet
Sonar Full Analysis
Skipped ConceptServiceTest saveConcept_shouldNotSetAuditInfoIfTheConceptIsNotEdited
Sonar Full Analysis
Skipped EncounterServiceTest getEncounters_shouldNotReturnVoidedEncountersIfIncludeVoidedIsSetToTrue
Sonar Full Analysis
Skipped EncounterServiceTest saveEncounter_shouldVoidAndCreateNewObsWhenSavingEncounter
Sonar Full Analysis
Skipped EncounterServiceTest getEncounters_shouldGetAllTheUniqueEncountersThatMatchTheSpecifiedParameterValues
Sonar Full Analysis
Skipped NoteServiceTest org.openmrs.api.NoteServiceTest
Sonar Full Analysis
Skipped OpenmrsServiceTest shouldCheckThatAMethodIsNotRolledBackInCaseOfAnErrorInAnotherInvokedInsideIt
Sonar Full Analysis
Skipped PatientServiceTest voidPatient_shouldReturnNullWhenPatientIsNull
Sonar Full Analysis
Skipped PatientServiceTest checkPatientIdentifiers_shouldThrowErrorWhenPatientHasIdenticalIdentifiers
Sonar Full Analysis
Skipped ProviderServiceTest getCountOfProviders_shouldIncludeRetiredProvidersIfIncludeRetiredIsSetToTrue
Sonar Full Analysis
Skipped ProviderServiceTest getCountOfProviders_shouldExcludeRetiredProviders
Sonar Full Analysis
Skipped UserServiceTest changeQuestionAnswer_shouldChangeTheSecretQuestionAndAnswerForGivenUser
Sonar Full Analysis
Skipped ConceptDAOTest getConcepts_shouldReturnCorrectResultsIfAConceptNameContainsSameWordMoreThanOnce
Sonar Full Analysis
Skipped ConceptDAOTest getConcepts_shouldReturnCorrectResultsForConceptWithNamesThatContainsWordsWithMoreWeight
Sonar Full Analysis
Skipped SerializedObjectDAOTest org.openmrs.api.db.SerializedObjectDAOTest
Sonar Full Analysis
Skipped ArdenServiceTest compileFile_shouldGetAndParseMlms
Sonar Full Analysis
Skipped HL7ServiceTest processHL7InQueue_shouldParseOruR01MessageUsingOverriddenParserProvidedByAModule
Sonar Full Analysis
Skipped HL7ServiceTest processHL7Message_shouldParseMessageTypeSuppliedByModule
Sonar Full Analysis
Skipped ModuleActivatorTest org.openmrs.module.ModuleActivatorTest
Sonar Full Analysis
Skipped SchedulerServiceTest org.openmrs.scheduler.SchedulerServiceTest
Sonar Full Analysis
Skipped SchedulerFormControllerTest onSubmit_shouldNotRescheduleATaskIfTheStartTimeHasPassed
Sonar Full Analysis
Skipped ConceptReferenceTermValidatorTest validate_shouldFailIfTheNameIsAWhiteSpaceCharacter
Sonar Full Analysis
Skipped ConceptReferenceTermValidatorTest validate_shouldFailIfTheNameIsNull
Sonar Full Analysis
Skipped ConceptReferenceTermValidatorTest validate_shouldFailIfTheNameIsAnEmptyString
Sonar Full Analysis
Skipped VisitValidatorTest validate_shouldFailIfAnAttributeIsBad
Sonar Full Analysis
Skipped DWRPatientServiceTest findPatients_shouldGetResultsForPatientsThatHaveEditedThemselves
Sonar Full Analysis
Skipped DWRPatientServiceTest findPatients_shouldLoggedInUserShouldLoadTheirOwnPatientObject
Sonar Full Analysis
Skipped DWRProviderServiceTest findProviderCountAndProvider_shouldReturnTheCountOfAllProvidersMatchingTheSearchedNameAlongWithProviderList
Sonar Full Analysis
Skipped FilterUtilTest storeLocale_shouldRestoreLocale
Sonar Full Analysis
Skipped FilterUtilTest storeLocale_shouldStoreLocale
Sonar Full Analysis