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);
}
Aggregations