예제 #1
0
  @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());
  }
예제 #2
0
 @Test(expected = InputTypeValidationException.class)
 public void testValidate_invalidType() {
   final InputTypeConfig config = InputTypeConfig.create().build();
   this.type.validate(booleanProperty(true), config);
 }
예제 #3
0
 @Test
 public void testValidate() {
   final InputTypeConfig config = InputTypeConfig.create().build();
   this.type.validate(stringProperty("test"), config);
 }