@Test public void testMatchesStatusNonNullStatus() { BgpSessionCompatibilityQuestion q = new BgpSessionCompatibilityQuestion( null, null, ConfiguredSessionStatus.NO_REMOTE_AS.toString(), null); for (ConfiguredSessionStatus status : ConfiguredSessionStatus.values()) { if (status == ConfiguredSessionStatus.NO_REMOTE_AS) { assertTrue(status.toString(), q.matchesStatus(status)); } else { assertFalse(status.toString(), q.matchesStatus(status)); } } }
boolean matchesStatus(ConfiguredSessionStatus status) { return _expandedStatuses.contains(status); }
BgpSessionCompatibilityQuestion extends BgpSessionQuestion { boolean matchesStatus(ConfiguredSessionStatus status) { return _expandedStatuses.contains(status); } }
BgpSessionCompatibilityQuestion extends BgpSessionQuestion { boolean matchesStatus(ConfiguredSessionStatus status) { return _expandedStatuses.contains(status); } BgpSessionCompatibilityQuestion();  BgpSessionCompatibilityQuestion(
      @Nullable String nodes,
      @Nullable String remoteNodes,
      @Nullable String status,
      @Nullable String type); }
BgpSessionCompatibilityQuestion extends BgpSessionQuestion { boolean matchesStatus(ConfiguredSessionStatus status) { return _expandedStatuses.contains(status); } BgpSessionCompatibilityQuestion();  BgpSessionCompatibilityQuestion(
      @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(); }
BgpSessionCompatibilityQuestion extends BgpSessionQuestion { boolean matchesStatus(ConfiguredSessionStatus status) { return _expandedStatuses.contains(status); } BgpSessionCompatibilityQuestion();  BgpSessionCompatibilityQuestion(
      @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();  }