ProgressModel { public void updateWord(final WordState oldState, final WordState newState) { SimpleIntegerProperty oldValue = properties.get(oldState); SimpleIntegerProperty newValue = properties.get(newState); updateValue(oldValue, -1); updateValue(newValue, 1); } ProgressModel(); SimpleIntegerProperty knownProperty(); SimpleIntegerProperty unknownProperty(); SimpleIntegerProperty unseenUnfilteredProperty(); NumberBinding unseenUnfilteredPercentVisibleProperty(); SimpleIntegerProperty unseenFilteredProperty(); NumberBinding markedProperty(); NumberBinding totalProperty(); NumberBinding knownPercentProperty(); NumberBinding unknownPercentProperty(); NumberBinding unseenUnfilteredPercentProperty(); NumberBinding unseenFilteredPercentProperty(); NumberBinding markedPercentVisibleProperty(); void updateProgress(final int known, final int unknown, final int unseenUnfiltered, final int unseenFiltered); void updateWord(final WordState oldState, final WordState newState);  }
@Test public void testToKnown() { initialiseValues(); target.updateWord(WordState.UNKNOWN, WordState.KNOWN); validateBasic(11, 9, 10, 10); }
@Test public void testToUnseen() { initialiseValues(); target.updateWord(WordState.KNOWN, WordState.UNSEEN); validateBasic(9, 10, 11, 10); }
@Test public void testToUnknown() { initialiseValues(); target.updateWord(WordState.UNSEEN, WordState.UNKNOWN); validateBasic(10, 11, 9, 10); }