@Test public void testNull_GoBack() { historyList.setAllowNulls(true); addHistory(A); addHistory(null); assertHistory(A, null); addHistory(B); assertHistory(A, B); addHistory(null); assertHistory(A, B, null); }
public void setAllowNulls(boolean allowNulls) { this.allowsNulls = allowNulls; }
HistoryList { public void setAllowNulls(boolean allowNulls) { this.allowsNulls = allowNulls; } }
HistoryList { public void setAllowNulls(boolean allowNulls) { this.allowsNulls = allowNulls; } HistoryList(int size, Consumer<T> itemSelectedCallback); }
HistoryList { public void setAllowNulls(boolean allowNulls) { this.allowsNulls = allowNulls; } HistoryList(int size, Consumer<T> itemSelectedCallback); void setAllowDuplicates(boolean allowDuplicates); void setAllowNulls(boolean allowNulls); void add(T t); boolean hasNext(); boolean hasPrevious(); void goBack(); void goForward(); T getCurrentHistoryItem(); List<T> getPreviousHistoryItems(); List<T> getNextHistoryItems(); void clear(); int size(); @Override String toString(); }
HistoryList { public void setAllowNulls(boolean allowNulls) { this.allowsNulls = allowNulls; } HistoryList(int size, Consumer<T> itemSelectedCallback); void setAllowDuplicates(boolean allowDuplicates); void setAllowNulls(boolean allowNulls); void add(T t); boolean hasNext(); boolean hasPrevious(); void goBack(); void goForward(); T getCurrentHistoryItem(); List<T> getPreviousHistoryItems(); List<T> getNextHistoryItems(); void clear(); int size(); @Override String toString();  }