Topping { public int getPreviousColor() { return previousColor; } Topping(int id); int getId(); int getColor(); int getPreviousColor(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final int PRIMARY; static final int PRIMARY_DARK; static final int ACCENT; }
@Test public void getPreviousColor() throws Exception { int color = mToppingMock.getColor(); assertThat(color, is(MOCK_DEFAULT_COLOR)); }