@Test public void testRecycle () { uut.add("test1"); uut.add("test2"); uut.add(42); uut.add(43); uut.add(44); List<?> result = uut.getData(); assertEquals(5, result.size(), "five"); uut.recycle(); result = uut.getData(); assertEquals(0, result.size(), "zero"); }
@Override public void recycle () { data.clear(); classMap.clear(); }
BootstrapDataRepo implements DomainRepo { @Override public void recycle () { data.clear(); classMap.clear(); } }
BootstrapDataRepo implements DomainRepo { @Override public void recycle () { data.clear(); classMap.clear(); } BootstrapDataRepo(); }
BootstrapDataRepo implements DomainRepo { @Override public void recycle () { data.clear(); classMap.clear(); } BootstrapDataRepo(); void add(Object item); void add(List<Object> items); List<Object> getData(); List<Object> getData(Class<?> type); Competition getBootstrapCompetition(); Properties getBootState(); @Override void recycle(); void readBootRecord(URL bootUrl); }
BootstrapDataRepo implements DomainRepo { @Override public void recycle () { data.clear(); classMap.clear(); } BootstrapDataRepo(); void add(Object item); void add(List<Object> items); List<Object> getData(); List<Object> getData(Class<?> type); Competition getBootstrapCompetition(); Properties getBootState(); @Override void recycle(); void readBootRecord(URL bootUrl);  }