PathogenicityFilter implements VariantFilter { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final PathogenicityFilter other = (PathogenicityFilter) obj; return this.keepNonPathogenic == other.keepNonPathogenic; } PathogenicityFilter(boolean keepNonPathogenic); @JsonProperty boolean keepNonPathogenic(); @Override FilterType getFilterType(); @Override FilterResult runFilter(VariantEvaluation variantEvaluation); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testEqualToOtherPathogenicityFilter() { instance = new PathogenicityFilter(false); PathogenicityFilter other = new PathogenicityFilter(false); assertThat(instance.equals(other), is(true)); }
@Test public void testNotEqualToOtherPathogenicityFilter() { instance = new PathogenicityFilter(false); PathogenicityFilter other = new PathogenicityFilter(true); assertThat(instance.equals(other), is(false)); }
@Test public void testNotEqualToOtherFilterType() { instance = new PathogenicityFilter(false); Filter other = new FrequencyFilter(0.1f); assertThat(instance.equals(other), is(false)); }
@Test public void testNotEqualToObjectOfDifferentType() { Object other = "a string"; assertThat(instance.equals(other), is(false)); }
@Test public void testNotEqualToNullObject() { Object other = null; assertThat(instance.equals(other), is(false)); }