@Test public void testProcessesNewClothing() { ArrayList<Clothing> newClothing = Lists.newArrayList(new Clothing("id123")); clothingController.processNewClothing(newClothing); verify(mockClothingService).create(newClothing); }
@Test public void testClothing() throws Exception { List<Clothing> clothing = createClothing(); when(mockClothingService.search(SEARCH_STRING)).thenReturn(clothing); assertThat(clothingController.clothing(SEARCH_STRING), is(clothing)); }