Ejemplo n.º 1
0
  @Test
  public void shouldEnableChangeButtonIfValueNotEmpty() throws Exception {
    when(view.getValue()).thenReturn(VAR_VALUE);

    presenter.onVariableValueChanged();

    verify(view).setEnableChangeButton(eq(!DISABLE_BUTTON));
  }
Ejemplo n.º 2
0
  @Test
  public void shouldDisableChangeButtonIfNoValue() throws Exception {
    when(view.getValue()).thenReturn(EMPTY_VALUE);

    presenter.onVariableValueChanged();

    verify(view).setEnableChangeButton(eq(DISABLE_BUTTON));
  }