/** Tests that Restocker stats are added correctly */ public void testAddRestock() { int startSize = stat.getRestockStatList().size(); stat.addRestock("Bill", instruction); assertEquals( "Stat list should increas size by 1.", startSize + 1, stat.getRestockStatList().size()); }
/** Tests that stats are added correctly */ public void testAddStat() { int startSize = stat.getDataStatList().size(); stat.addStat("test", 1, 1, 1); assertEquals( "Stat list should increas size by 1.", startSize + 1, stat.getDataStatList().size()); }