@Test public void testOnColorUpdate() { PlutoColor color = new PlutoColor(1, 2, 3); presenter.onColorUpdate(new PlutoCommunicator.ColorUpdateEvent(color)); verify(view, times(1)).setBackgroundColor(color); verify(view, times(1)).setSeekBar(color); }
@Test public void testOnColorUpdateNullColor() { presenter.onColorUpdate(new PlutoCommunicator.ColorUpdateEvent(null)); verifyZeroInteractions(view); }