@Test public void testGetMatchBuilders_Success() { ClassificationResult result = new ClassificationResult(matches); assertEquals(matches, result.getMatchBuilders()); }
public List<MatchBuilder> getMatchBuilders() { if (isSuccessful == false) { throw new IllegalStateException("Classification was not successfull."); } return matchBuilders; }
ClassificationResult { public List<MatchBuilder> getMatchBuilders() { if (isSuccessful == false) { throw new IllegalStateException("Classification was not successfull."); } return matchBuilders; } }
ClassificationResult { public List<MatchBuilder> getMatchBuilders() { if (isSuccessful == false) { throw new IllegalStateException("Classification was not successfull."); } return matchBuilders; } ClassificationResult(String errorMessage);  ClassificationResult(List<MatchBuilder> matches); }
ClassificationResult { public List<MatchBuilder> getMatchBuilders() { if (isSuccessful == false) { throw new IllegalStateException("Classification was not successfull."); } return matchBuilders; } ClassificationResult(String errorMessage);  ClassificationResult(List<MatchBuilder> matches); List<MatchBuilder> getMatchBuilders(); String getErrorMessage(); boolean isSuccessfull(); }
ClassificationResult { public List<MatchBuilder> getMatchBuilders() { if (isSuccessful == false) { throw new IllegalStateException("Classification was not successfull."); } return matchBuilders; } ClassificationResult(String errorMessage);  ClassificationResult(List<MatchBuilder> matches); List<MatchBuilder> getMatchBuilders(); String getErrorMessage(); boolean isSuccessfull();  }