use of ddf.catalog.validation.impl.validator.PatternValidator in project ddf by codice.
the class PatternValidatorTest method testEqualsDifferentPattern.
@Test
public void testEqualsDifferentPattern() {
final PatternValidator validator1 = new PatternValidator("test1");
final PatternValidator validator2 = new PatternValidator("test2");
assertThat(validator1.equals(validator2), is(false));
assertThat(validator2.equals(validator1), is(false));
}
use of ddf.catalog.validation.impl.validator.PatternValidator in project ddf by codice.
the class PatternValidatorTest method testHashCode.
@Test
public void testHashCode() {
final PatternValidator validator1 = new PatternValidator("test");
final PatternValidator validator2 = new PatternValidator("test");
assertThat(validator1.hashCode(), is(validator2.hashCode()));
}
use of ddf.catalog.validation.impl.validator.PatternValidator in project ddf by codice.
the class PatternValidatorTest method testEqualsSelf.
@Test
public void testEqualsSelf() {
final PatternValidator validator = new PatternValidator("test");
assertThat(validator.equals(validator), is(true));
}
use of ddf.catalog.validation.impl.validator.PatternValidator in project ddf by codice.
the class PatternValidatorTest method testEqualsNull.
@Test
public void testEqualsNull() {
final PatternValidator validator = new PatternValidator("test");
assertThat(validator.equals(null), is(false));
}
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));
}
Aggregations