1011121314151617181920212223
public class HistoryTest { @Test public void storageLimit() { History history = History.instance; for(int i = 0; i < History.limit * 2; i++) { history.add(null, new Date(), new Date()); Assert.assertTrue(history.size() < History.limit); } }