assertInvalid(testee, new ModelNode().set(1));
}
@Test
public void testBoolean() {
ModelTypeValidator testee = new ModelTypeValidator(ModelType.BOOLEAN, false, false, false);
assertOk(testee, new ModelNode().set(true));
assertOk(testee, new ModelNode().set("true"));
assertOk(testee, new ModelNode().set("TruE"));
assertOk(testee, new ModelNode().set("false"));
assertOk(testee, new ModelNode().set("fAlsE"));
assertInvalid(testee, new ModelNode().set("fals"));
assertInvalid(testee, new ModelNode().set(0));
testee = new ModelTypeValidator(ModelType.BOOLEAN, false, false, true);
assertOk(testee, new ModelNode().set(true));
assertInvalid(testee, new ModelNode().set("false"));
assertInvalid(testee, new ModelNode().set(0));
}