FilterSessionModel extends AbstractFilterModel { public void replaceContent(final Path file, final List<? extends MarkedWord> words) { replaceContent(file); setupValues(words); } FilterSessionModel(final Path file, final List<? extends MarkedWord> words); void replaceContent(final Path file, final List<? extends MarkedWord> words); @Override ObservableNumberValue wordCountProperty(); long getKnownCount(); long getSeenCount(); SimpleBooleanProperty includeUnknownProperty(); boolean isIncludeUnknown(); void setIncludeUnknown(final boolean isIncludeUnknown); ObservableList<FilterSessionWord> getSeenWords();  }
@Test public void testReplaceSimple() { FilterSessionModel target = build(0, 0); target.replaceContent(FILE_2, words(1000, 100)); validateReplaceOk(target, 1000, 1100, false, 1000); }
@Test public void testReplaceError() { FilterSessionModel target = build(1000, 100); target.replaceContent(FILE_2, words(0, 0)); validateReplaceError(target, 0, 0, false); }