use of edu.sdsc.mmtf.spark.interactions.InteractionFilter in project mmtf-spark by sbl-sdsc.
the class InteractionFilterTest method test6.
@Test
public void test6() {
InteractionFilter filter = new InteractionFilter();
filter.setQueryElements(true, "N", "O");
assertEquals(true, filter.isQueryElement("O"));
assertEquals(true, filter.isQueryElement("N"));
assertEquals(false, filter.isQueryElement("S"));
}
use of edu.sdsc.mmtf.spark.interactions.InteractionFilter in project mmtf-spark by sbl-sdsc.
the class InteractionFilterTest method test7.
@Test
public void test7() {
InteractionFilter filter = new InteractionFilter();
filter.setQueryElements(false, "N", "O");
assertEquals(false, filter.isQueryElement("N"));
assertEquals(false, filter.isQueryElement("O"));
assertEquals(true, filter.isQueryElement("S"));
}
use of edu.sdsc.mmtf.spark.interactions.InteractionFilter in project mmtf-spark by sbl-sdsc.
the class InteractionFilterTest method test9.
@Test
public void test9() {
InteractionFilter filter = new InteractionFilter();
filter.setTargetElements(false, "N", "O");
assertEquals(false, filter.isTargetElement("N"));
assertEquals(false, filter.isTargetElement("O"));
assertEquals(true, filter.isTargetElement("S"));
}
use of edu.sdsc.mmtf.spark.interactions.InteractionFilter in project mmtf-spark by sbl-sdsc.
the class InteractionFilterTest method test2.
@Test
public void test2() {
InteractionFilter filter = new InteractionFilter();
filter.setQueryGroups(false, "HOH", "ZN");
assertEquals(false, filter.isQueryGroup("ZN"));
assertEquals(false, filter.isQueryGroup("HOH"));
assertEquals(true, filter.isQueryGroup("MN"));
}
use of edu.sdsc.mmtf.spark.interactions.InteractionFilter in project mmtf-spark by sbl-sdsc.
the class InteractionFilterTest method test5.
@Test
public void test5() {
InteractionFilter filter = new InteractionFilter();
assertEquals(true, filter.isQueryGroup("ZN"));
assertEquals(true, filter.isTargetGroup("ZN"));
assertEquals(true, !filter.isProhibitedTargetGroup("ZN"));
}
Aggregations