Search in sources :

Example 1 with ExistingStateMachine

use of org.jboss.hal.ballroom.form.ExistingStateMachine in project console by hal.

the class ModelNodeFormTest method defaultStateMachine.

@Test
public void defaultStateMachine() {
    StateMachine stateMachine = new ModelNodeForm.Builder("defaultStateMachine", metadata(new ResourceDescriptionBuilder().attributes())).stateMachine();
    Assert.assertTrue(stateMachine instanceof ExistingStateMachine);
}
Also used : ExistingStateMachine(org.jboss.hal.ballroom.form.ExistingStateMachine) AddOnlyStateMachine(org.jboss.hal.ballroom.form.AddOnlyStateMachine) StateMachine(org.jboss.hal.ballroom.form.StateMachine) ReadOnlyStateMachine(org.jboss.hal.ballroom.form.ReadOnlyStateMachine) ExistingStateMachine(org.jboss.hal.ballroom.form.ExistingStateMachine) ResourceDescriptionBuilder(org.jboss.hal.core.mbui.ResourceDescriptionBuilder) Test(org.junit.Test)

Aggregations

AddOnlyStateMachine (org.jboss.hal.ballroom.form.AddOnlyStateMachine)1 ExistingStateMachine (org.jboss.hal.ballroom.form.ExistingStateMachine)1 ReadOnlyStateMachine (org.jboss.hal.ballroom.form.ReadOnlyStateMachine)1 StateMachine (org.jboss.hal.ballroom.form.StateMachine)1 ResourceDescriptionBuilder (org.jboss.hal.core.mbui.ResourceDescriptionBuilder)1 Test (org.junit.Test)1