use of org.yakindu.sct.model.sgraph.Synchronization in project statecharts by Yakindu.
the class SGraphJavaValidationTest method orthogonalSourceStates_StateInParentStateRegion.
@Test
public void orthogonalSourceStates_StateInParentStateRegion() {
statechart = loadStatechart("NotOrthogonalRegion01.sct");
State b = firstNamed(EcoreUtil2.eAllOfType(statechart, State.class), "AA");
Synchronization sync = (Synchronization) b.getOutgoingTransitions().get(0).getTarget();
assertFalse(validator.validate(sync, diagnostics, new HashMap<Object, Object>()));
assertIssueCount(diagnostics, 1);
assertError(diagnostics, ISSUE_SYNCHRONIZATION_SOURCE_STATES_NOT_ORTHOGONAL);
}
Aggregations