@Test public void testTextFeedbacksFromDifferentItemClasses() { SpeedupItem speedupItem = new SpeedupItem(0, 0, 10); assertThat(speedupItem.getTextFeedback(), is("SPEEDUP ! ")); SlowdownItem slowdownItem = new SlowdownItem(0, 0, 10); assertThat(slowdownItem.getTextFeedback(), is("SLOWDOWN ! ")); SwapAxisItem swapAxisItem = new SwapAxisItem(0, 0, 10); assertThat(swapAxisItem.getTextFeedback(), is("SWAPPED ! ")); AddStarsItem addStarsItem = new AddStarsItem(0, 0, 10); assertThat(addStarsItem.getTextFeedback(), is("+3 STARS ! ")); BumpingItem bumpingItem = new BumpingItem(0, 0, 10); assertThat(bumpingItem.getTextFeedback(), is(" ")); }
public abstract String getTextFeedback();
Item { public abstract String getTextFeedback(); }
Item { public abstract String getTextFeedback(); Item(int posX, int posY, int radius); }
Item { public abstract String getTextFeedback(); Item(int posX, int posY, int radius); int getX(); int getY(); int getRadius(); boolean collision(PaintView paintView); abstract void activate(final PaintView paintView); abstract String getTextFeedback(); int getColorId(); }
Item { public abstract String getTextFeedback(); Item(int posX, int posY, int radius); int getX(); int getY(); int getRadius(); boolean collision(PaintView paintView); abstract void activate(final PaintView paintView); abstract String getTextFeedback(); int getColorId();  }