@Test public void answerDiffCrashes() { SpecifiersReachabilityQuestion defaultQ = new SpecifiersReachabilityQuestion(null, null, null, null, null, null); IBatfish batfish = new IBatfishTestAdapter(); SpecifiersReachabilityAnswerer answerer = new SpecifiersReachabilityAnswerer(defaultQ, batfish); _expected.expectMessage("This question should not be run in differential mode."); answerer.answerDiff(batfish.getSnapshot(), batfish.getReferenceSnapshot()); }
@Override public AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference) { throw new IllegalArgumentException( "This question should not be run in differential mode. Instead, consider: " + StringUtils.join(DIFFERENTIAL_ALTERNATIVES, ", ")); }
SpecifiersReachabilityAnswerer extends Answerer { @Override public AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference) { throw new IllegalArgumentException( "This question should not be run in differential mode. Instead, consider: " + StringUtils.join(DIFFERENTIAL_ALTERNATIVES, ", ")); } }
SpecifiersReachabilityAnswerer extends Answerer { @Override public AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference) { throw new IllegalArgumentException( "This question should not be run in differential mode. Instead, consider: " + StringUtils.join(DIFFERENTIAL_ALTERNATIVES, ", ")); } SpecifiersReachabilityAnswerer(Question question, IBatfish batfish); }
SpecifiersReachabilityAnswerer extends Answerer { @Override public AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference) { throw new IllegalArgumentException( "This question should not be run in differential mode. Instead, consider: " + StringUtils.join(DIFFERENTIAL_ALTERNATIVES, ", ")); } SpecifiersReachabilityAnswerer(Question question, IBatfish batfish); @Override AnswerElement answer(NetworkSnapshot snapshot); @Override AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference); }
SpecifiersReachabilityAnswerer extends Answerer { @Override public AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference) { throw new IllegalArgumentException( "This question should not be run in differential mode. Instead, consider: " + StringUtils.join(DIFFERENTIAL_ALTERNATIVES, ", ")); } SpecifiersReachabilityAnswerer(Question question, IBatfish batfish); @Override AnswerElement answer(NetworkSnapshot snapshot); @Override AnswerElement answerDiff(NetworkSnapshot snapshot, NetworkSnapshot reference);  }