Search in sources :

Example 1 with InitState

use of org.malai.fsm.InitState in project Malai by arnobl.

the class TestMenuItemPressed method testProcessEventReinit.

@Test
void testProcessEventReinit() {
    interaction.processEvent(new ActionEvent(menuitem, null));
    assertNull(interaction.getWidget());
    assertTrue(interaction.getFsm().getCurrentState() instanceof InitState);
}
Also used : ActionEvent(javafx.event.ActionEvent) InitState(org.malai.fsm.InitState) Test(org.junit.jupiter.api.Test)

Example 2 with InitState

use of org.malai.fsm.InitState in project Malai by arnobl.

the class TestSpinnerChanged method testProcessEventReinit.

@Test
void testProcessEventReinit() {
    interaction.processEvent(new ActionEvent(widget, null));
    JfxtestHelper.waitForTimeoutTransitions();
    assertNull(interaction.getWidget());
    assertTrue(interaction.getFsm().getCurrentState() instanceof InitState);
}
Also used : ActionEvent(javafx.event.ActionEvent) InitState(org.malai.fsm.InitState) Test(org.junit.jupiter.api.Test)

Example 3 with InitState

use of org.malai.fsm.InitState in project Malai by arnobl.

the class BaseWIMPWidgetTest method testProcessEventReinit.

@Test
void testProcessEventReinit() {
    interaction.processEvent(new ActionEvent(wimpWidget, null));
    JfxtestHelper.waitForTimeoutTransitions();
    assertNull(interaction.getWidget());
    assertTrue(interaction.getFsm().getCurrentState() instanceof InitState);
}
Also used : ActionEvent(javafx.event.ActionEvent) InitState(org.malai.fsm.InitState) Test(org.junit.jupiter.api.Test)

Aggregations

ActionEvent (javafx.event.ActionEvent)3 Test (org.junit.jupiter.api.Test)3 InitState (org.malai.fsm.InitState)3