@Test public void testGetElement() { final HTMLElement expectedElement = mock(HTMLElement.class); when(view.getElement()).thenReturn(expectedElement); final HTMLElement actualElement = switchComponent.getElement(); assertEquals(expectedElement, actualElement); }
public HTMLElement getElement() { return view.getElement(); }
SmallSwitchComponent { public HTMLElement getElement() { return view.getElement(); } }
SmallSwitchComponent { public HTMLElement getElement() { return view.getElement(); } @Inject  SmallSwitchComponent(final View view); }
SmallSwitchComponent { public HTMLElement getElement() { return view.getElement(); } @Inject  SmallSwitchComponent(final View view); HTMLElement getElement(); boolean getValue(); void setValue(final boolean value); void setOnValueChanged(final Consumer<Boolean> onValueChanged); }
SmallSwitchComponent { public HTMLElement getElement() { return view.getElement(); } @Inject  SmallSwitchComponent(final View view); HTMLElement getElement(); boolean getValue(); void setValue(final boolean value); void setOnValueChanged(final Consumer<Boolean> onValueChanged);  }