@Test public void testValidateValidProperties( ) { List< ValidationMessage > result = validator.validate( PROPERTY_NAME, "value" ); assertTrue( result.isEmpty( ) ); result = validator.validate( PROPERTY_NAME, "value", 0 ); assertTrue( result.isEmpty( ) ); }
public List<ValidationMessage> validate( String name, String value ) { return validate( name, value, -1 ); }
PropertyValidator { public List<ValidationMessage> validate( String name, String value ) { return validate( name, value, -1 ); } }
PropertyValidator { public List<ValidationMessage> validate( String name, String value ) { return validate( name, value, -1 ); } PropertyValidator(); }
PropertyValidator { public List<ValidationMessage> validate( String name, String value ) { return validate( name, value, -1 ); } PropertyValidator(); List<ValidationMessage> validate( String name, String value ); List<ValidationMessage> validate( String name, String value, int propertyIndex ); }
PropertyValidator { public List<ValidationMessage> validate( String name, String value ) { return validate( name, value, -1 ); } PropertyValidator(); List<ValidationMessage> validate( String name, String value ); List<ValidationMessage> validate( String name, String value, int propertyIndex );  }