use of org.camunda.bpm.engine.runtime.IncidentQuery in project camunda-bpm-platform by camunda.
the class IncidentQueryTest method testQueryByRootInvalidCauseIncidentId.
@Test
public void testQueryByRootInvalidCauseIncidentId() {
IncidentQuery query = runtimeService.createIncidentQuery().rootCauseIncidentId("invalid");
assertEquals(0, query.count());
List<Incident> incidents = query.list();
assertTrue(incidents.isEmpty());
assertEquals(0, incidents.size());
}
use of org.camunda.bpm.engine.runtime.IncidentQuery in project camunda-bpm-platform by camunda.
the class IncidentQueryTest method testQueryByInvalidIncidentMessage.
@Test
public void testQueryByInvalidIncidentMessage() {
IncidentQuery query = runtimeService.createIncidentQuery().incidentMessage("invalid");
assertEquals(0, query.count());
List<Incident> incidents = query.list();
assertTrue(incidents.isEmpty());
Incident incident = query.singleResult();
assertNull(incident);
}
use of org.camunda.bpm.engine.runtime.IncidentQuery in project camunda-bpm-platform by camunda.
the class IncidentQueryTest method testQueryByInvalidProcessInstanceId.
@Test
public void testQueryByInvalidProcessInstanceId() {
IncidentQuery query = runtimeService.createIncidentQuery().processInstanceId("invalid");
assertEquals(0, query.count());
List<Incident> incidents = query.list();
assertTrue(incidents.isEmpty());
Incident incident = query.singleResult();
assertNull(incident);
}
use of org.camunda.bpm.engine.runtime.IncidentQuery in project camunda-bpm-platform by camunda.
the class IncidentQueryTest method testQueryByInvalidCauseIncidentId.
@Test
public void testQueryByInvalidCauseIncidentId() {
IncidentQuery query = runtimeService.createIncidentQuery().causeIncidentId("invalid");
assertEquals(0, query.count());
List<Incident> incidents = query.list();
assertTrue(incidents.isEmpty());
assertEquals(0, incidents.size());
}
use of org.camunda.bpm.engine.runtime.IncidentQuery in project camunda-bpm-platform by camunda.
the class IncidentQueryTest method testQueryByInvalidConfiguration.
@Test
public void testQueryByInvalidConfiguration() {
IncidentQuery query = runtimeService.createIncidentQuery().configuration("invalid");
assertEquals(0, query.count());
List<Incident> incidents = query.list();
assertTrue(incidents.isEmpty());
Incident incident = query.singleResult();
assertNull(incident);
}
Aggregations