Search in sources :

Example 1 with ExtensionTestModels

use of org.yakindu.sct.test.models.ExtensionTestModels in project statecharts by Yakindu.

the class StatechartExtensionsTest method testmaxNumberOfParallelTimeEvents.

@Test
public void testmaxNumberOfParallelTimeEvents() {
    ExtensionTestModels models = new ExtensionTestModels();
    Statechart sc = ExtensionTestModels.loadStatechart(models.getModelDirectory() + ExtensionTestModels.PARALLEL_TIME_EVENTS);
    assertEquals(statechartExtensions.maxNumberOfParallelTimeEvents(sc), 6);
}
Also used : ExtensionTestModels(org.yakindu.sct.test.models.ExtensionTestModels) Statechart(org.yakindu.sct.model.sgraph.Statechart) Test(org.junit.Test)

Example 2 with ExtensionTestModels

use of org.yakindu.sct.test.models.ExtensionTestModels in project statecharts by Yakindu.

the class StatechartExtensionsTest method testmaxNumberOfParallelTimeEvents_zero.

@Test
public void testmaxNumberOfParallelTimeEvents_zero() {
    ExtensionTestModels models = new ExtensionTestModels();
    Statechart sc = ExtensionTestModels.loadStatechart(models.getModelDirectory() + ExtensionTestModels.NO_TIME_EVENTS);
    assertEquals(statechartExtensions.maxNumberOfParallelTimeEvents(sc), 0);
}
Also used : ExtensionTestModels(org.yakindu.sct.test.models.ExtensionTestModels) Statechart(org.yakindu.sct.model.sgraph.Statechart) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 Statechart (org.yakindu.sct.model.sgraph.Statechart)2 ExtensionTestModels (org.yakindu.sct.test.models.ExtensionTestModels)2