Пример #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);
 }