@Test(expected = IllegalStateException.class) public void testRemoveFromEmptyHistory() throws Exception { StateHistory<MysqlSourceState> history = new StateHistory<>(SOURCE_NAME, 2, new TestRepository(), metrics); history.removeLast(); }
public S removeLast() { return removeLast(1); }
StateHistory { public S removeLast() { return removeLast(1); } }
StateHistory { public S removeLast() { return removeLast(1); } StateHistory(
      @NonNull final String sourceName,
      @NonNull final Repository<Collection<S>> repository,
      @NonNull final MysqlSourceMetrics metrics);  StateHistory(
      @NonNull final String sourceName,
      @Min(1) final int capacity,
      @NonNull final Repository<Collection<S>> repository,
      @NonNull final MysqlSourceMetrics metrics); }
StateHistory { public S removeLast() { return removeLast(1); } StateHistory(
      @NonNull final String sourceName,
      @NonNull final Repository<Collection<S>> repository,
      @NonNull final MysqlSourceMetrics metrics);  StateHistory(
      @NonNull final String sourceName,
      @Min(1) final int capacity,
      @NonNull final Repository<Collection<S>> repository,
      @NonNull final MysqlSourceMetrics metrics); void add(final S state); S removeLast(); S removeLast(int count); void clear(); boolean isEmpty(); int size(); }
StateHistory { public S removeLast() { return removeLast(1); } StateHistory(
      @NonNull final String sourceName,
      @NonNull final Repository<Collection<S>> repository,
      @NonNull final MysqlSourceMetrics metrics);  StateHistory(
      @NonNull final String sourceName,
      @Min(1) final int capacity,
      @NonNull final Repository<Collection<S>> repository,
      @NonNull final MysqlSourceMetrics metrics); void add(final S state); S removeLast(); S removeLast(int count); void clear(); boolean isEmpty(); int size();  }