@Test public void testGetValueWhenValueIsFalse() { final boolean expectedValue = false; when(view.getValue()).thenReturn(expectedValue); final boolean actualValue = switchComponent.getValue(); assertEquals(expectedValue, actualValue); }
public boolean getValue() { return view.getValue(); }
SmallSwitchComponent { public boolean getValue() { return view.getValue(); } }
SmallSwitchComponent { public boolean getValue() { return view.getValue(); } @Inject  SmallSwitchComponent(final View view); }
SmallSwitchComponent { public boolean getValue() { return view.getValue(); } @Inject  SmallSwitchComponent(final View view); HTMLElement getElement(); boolean getValue(); void setValue(final boolean value); void setOnValueChanged(final Consumer<Boolean> onValueChanged); }
SmallSwitchComponent { public boolean getValue() { return view.getValue(); } @Inject  SmallSwitchComponent(final View view); HTMLElement getElement(); boolean getValue(); void setValue(final boolean value); void setOnValueChanged(final Consumer<Boolean> onValueChanged);  }