Topping { public int getId(){ return id; } 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 getId() throws Exception { int id = mToppingMock.getId(); assertThat(id, is(MOCK_ID)); }