@Test public void testCreateProperty() { final InputTypeConfig config = InputTypeConfig.create().build(); final Value value = this.type.createValue("test", config); assertNotNull(value); assertSame(ValueTypes.STRING, value.getType()); }
@Test(expected = InputTypeValidationException.class) public void testValidate_invalidType() { final InputTypeConfig config = InputTypeConfig.create().build(); this.type.validate(booleanProperty(true), config); }
@Test public void testValidate() { final InputTypeConfig config = InputTypeConfig.create().build(); this.type.validate(stringProperty("test"), config); }