use of ddf.catalog.validation.impl.validator.PatternValidator in project ddf by codice.
the class PatternValidatorTest method testEquals.
@Test
public void testEquals() {
final PatternValidator validator1 = new PatternValidator("test");
final PatternValidator validator2 = new PatternValidator("test");
assertThat(validator1.equals(validator2), is(true));
assertThat(validator2.equals(validator1), is(true));
}
use of ddf.catalog.validation.impl.validator.PatternValidator in project ddf by codice.
the class PatternValidatorTest method testHashCodeDifferentPattern.
@Test
public void testHashCodeDifferentPattern() {
final PatternValidator validator1 = new PatternValidator("test1");
final PatternValidator validator2 = new PatternValidator("test2");
assertThat(validator1.hashCode(), not(validator2.hashCode()));
}
Aggregations