assertEquals("messageStartEvent", query.singleResult().getActivityType());
}
@Deployment(resources="org/camunda/bpm/engine/test/history/HistoricActivityInstanceTest.testEvents.bpmn")
public void testEndEventTypes() {
HistoricActivityInstanceQuery query = startEventTestProcess("");
/*
TODO: wait for CAM-2761 to be done
query.activityId("cancellationEndEvent");
assertEquals(1, query.count());
assertEquals("cancelEndEvent", query.singleResult().getActivityType());
*/
query.activityId("messageEndEvent");
assertEquals(1, query.count());
assertEquals("messageEndEvent", query.singleResult().getActivityType());
query.activityId("errorEndEvent");
assertEquals(1, query.count());
assertEquals("errorEndEvent", query.singleResult().getActivityType());
query.activityId("signalEndEvent");
assertEquals(1, query.count());
assertEquals("signalEndEvent", query.singleResult().getActivityType());
query.activityId("terminationEndEvent");
assertEquals(1, query.count());
assertEquals("terminateEndEvent", query.singleResult().getActivityType());
query.activityId("noneEndEvent");
assertEquals(1, query.count());
assertEquals("noneEndEvent", query.singleResult().getActivityType());
}