@Test public void testDelete() throws Exception { int sizeBefore = uiUpdates.size(); baseEntity.delete(); int sizeAfter = uiUpdates.size(); Assert.assertEquals(sizeBefore + 1, sizeAfter); Assert.assertTrue(uiUpdates.contains(new RemoveBaseEntity(baseEntity.imageView))); }
public void delete() { uiUpdates.add(new RemoveBaseEntity(imageView)); }
BaseEntity { public void delete() { uiUpdates.add(new RemoveBaseEntity(imageView)); } }
BaseEntity { public void delete() { uiUpdates.add(new RemoveBaseEntity(imageView)); } BaseEntity(BlockingQueue<UIUpdate> uiUpdates, String image); }
BaseEntity { public void delete() { uiUpdates.add(new RemoveBaseEntity(imageView)); } BaseEntity(BlockingQueue<UIUpdate> uiUpdates, String image); void setPosition(D3Vector position); void setDirection(D3PolarCoordinate direction); double getSpriteX(); void setSpriteX(double spriteX); double getSpriteY(); void setSpriteY(double spriteY); String getId(); void setId(String id); void delete(); }
BaseEntity { public void delete() { uiUpdates.add(new RemoveBaseEntity(imageView)); } BaseEntity(BlockingQueue<UIUpdate> uiUpdates, String image); void setPosition(D3Vector position); void setDirection(D3PolarCoordinate direction); double getSpriteX(); void setSpriteX(double spriteX); double getSpriteY(); void setSpriteY(double spriteY); String getId(); void setId(String id); void delete();  }