@Test public void testMatchesStatusNonNullStatus() { BgpSessionStatusQuestion q = new BgpSessionStatusQuestion(null, null, BgpSessionStatus.NOT_COMPATIBLE.toString(), null); for (BgpSessionStatus status : BgpSessionStatus.values()) { if (status == BgpSessionStatus.NOT_COMPATIBLE) { assertTrue(status.toString(), q.matchesStatus(status)); } else { assertFalse(status.toString(), q.matchesStatus(status)); } } }
boolean matchesStatus(BgpSessionStatus status) { return _expandedStatuses.contains(status); }
BgpSessionStatusQuestion extends BgpSessionQuestion { boolean matchesStatus(BgpSessionStatus status) { return _expandedStatuses.contains(status); } }
BgpSessionStatusQuestion extends BgpSessionQuestion { boolean matchesStatus(BgpSessionStatus status) { return _expandedStatuses.contains(status); } BgpSessionStatusQuestion();  BgpSessionStatusQuestion(
      @Nullable String nodes,
      @Nullable String remoteNodes,
      @Nullable String status,
      @Nullable String type); }
BgpSessionStatusQuestion extends BgpSessionQuestion { boolean matchesStatus(BgpSessionStatus status) { return _expandedStatuses.contains(status); } BgpSessionStatusQuestion();  BgpSessionStatusQuestion(
      @Nullable String nodes,
      @Nullable String remoteNodes,
      @Nullable String status,
      @Nullable String type); @Override boolean getDataPlane(); @Override String getName(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
BgpSessionStatusQuestion extends BgpSessionQuestion { boolean matchesStatus(BgpSessionStatus status) { return _expandedStatuses.contains(status); } BgpSessionStatusQuestion();  BgpSessionStatusQuestion(
      @Nullable String nodes,
      @Nullable String remoteNodes,
      @Nullable String status,
      @Nullable String type); @Override boolean getDataPlane(); @Override String getName(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }