Search in sources :

Example 1 with ReadOnlyStateMachine

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

the class ModelNodeFormTest method viewOnlyStateMachine.

@Test
public void viewOnlyStateMachine() {
    StateMachine stateMachine = new ModelNodeForm.Builder("viewOnlyStateMachine", metadata(new ResourceDescriptionBuilder().attributes())).readOnly().stateMachine();
    Assert.assertTrue(stateMachine instanceof ReadOnlyStateMachine);
}
Also used : ReadOnlyStateMachine(org.jboss.hal.ballroom.form.ReadOnlyStateMachine) 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) ResourceDescriptionBuilder(org.jboss.hal.core.mbui.ResourceDescriptionBuilder) 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