Sonar metrics for OpenMRS Core Master
Build: #469 failed
Job: Sonar Full Analysis failed
Test results
- 3,389 tests in total
- 5 tests failed
- 5 failures are new
- 32 tests were quarantined / skipped
- 10 minutes taken in total.
Build 469 has the following 5 errors: 5 new failure(s) occurred since the previous build.
Status | Test | Duration | |
---|---|---|---|
Collapse |
SchedulerFormControllerTest
onSubmit_shouldNotRescheduleAnExecutingTask
|
< 1 sec | |
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "CONSTRAINT_INDEX_24 ON PUBLIC.SCHEDULER_TASK_CONFIG(UUID) VALUES ('29754c38-6711-11e0-9d74-18a905e044dc', 22)"; SQL statement: insert into SCHEDULER_TASK_CONFIG (TASK_CONFIG_ID, NAME, DESCRIPTION, SCHEDULABLE_CLASS, REPEAT_INTERVAL, STARTED, START_ON_STARTUP, UUID, CREATED_BY, DATE_CREATED) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-183] org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "CONSTRAINT_INDEX_24 ON PUBLIC.SCHEDULER_TASK_CONFIG(UUID) VALUES ('29754c38-6711-11e0-9d74-18a905e044dc', 22)"; SQL statement: insert into SCHEDULER_TASK_CONFIG (TASK_CONFIG_ID, NAME, DESCRIPTION, SCHEDULABLE_CLASS, REPEAT_INTERVAL, STARTED, START_ON_STARTUP, UUID, CREATED_BY, DATE_CREATED) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-183] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:179) at org.h2.message.DbException.get(DbException.java:155) at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:102) at org.h2.mvstore.db.MVSecondaryIndex.add(MVSecondaryIndex.java:203) (49 more lines...) |
|||
Collapse |
TaskHelperTest
getScheduledTaskDefinition_shouldReturnATaskThatHasBeenStarted
|
< 1 sec | |
org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899) at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) (64 more lines...) |
|||
Collapse |
TaskHelperTest
getUnscheduledTaskDefinition_shouldReturnATaskThatHasNotBeenStarted
|
< 1 sec | |
org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899) at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) (64 more lines...) |
|||
Collapse |
TaskHelperTest
waitUntilTaskIsExecuting_shouldRaiseATimeoutExceptionWhenTheTimeoutIsExceeded
|
< 1 sec | |
java.lang.Exception: Unexpected exception, expected<java.util.concurrent.TimeoutException> but was<org.hibernate.NonUniqueResultException> at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:28) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) (68 more lines...) |
|||
Collapse |
TaskHelperTest
waitUntilTaskIsExecuting_shouldWaitUntilTaskIsExecuting
|
< 1 sec | |
org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899) at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) (64 more lines...) |