@Test public void testSetTooltip() { AbstractComponent component = mock(AbstractComponent.class); CaptionComponentWrapper wrapper = new CaptionComponentWrapper("testID", component, WrapperType.FIELD); wrapper.setTooltip("testTip"); verify(component).setDescription("testTip"); }
@Override public void setTooltip(String text) { if (component instanceof AbstractComponent) { ((AbstractComponent)component).setDescription(text); } }
CaptionComponentWrapper implements ComponentWrapper { @Override public void setTooltip(String text) { if (component instanceof AbstractComponent) { ((AbstractComponent)component).setDescription(text); } } }
CaptionComponentWrapper implements ComponentWrapper { @Override public void setTooltip(String text) { if (component instanceof AbstractComponent) { ((AbstractComponent)component).setDescription(text); } } CaptionComponentWrapper(Component component, WrapperType wrapperType);  CaptionComponentWrapper(String id, Component component, WrapperType wrapperType); }
CaptionComponentWrapper implements ComponentWrapper { @Override public void setTooltip(String text) { if (component instanceof AbstractComponent) { ((AbstractComponent)component).setDescription(text); } } CaptionComponentWrapper(Component component, WrapperType wrapperType);  CaptionComponentWrapper(String id, Component component, WrapperType wrapperType); @Override void setId(String id); @Override void setLabel(String labelText); @Override void setEnabled(boolean enabled); @Override void setVisible(boolean visible); @Override void setTooltip(String text); @Override Component getComponent(); @Override void setValidationMessages(MessageList messagesForProperty); @Override WrapperType getType(); @Override void registerBinding(Binding binding); @Override String toString(); }
CaptionComponentWrapper implements ComponentWrapper { @Override public void setTooltip(String text) { if (component instanceof AbstractComponent) { ((AbstractComponent)component).setDescription(text); } } CaptionComponentWrapper(Component component, WrapperType wrapperType);  CaptionComponentWrapper(String id, Component component, WrapperType wrapperType); @Override void setId(String id); @Override void setLabel(String labelText); @Override void setEnabled(boolean enabled); @Override void setVisible(boolean visible); @Override void setTooltip(String text); @Override Component getComponent(); @Override void setValidationMessages(MessageList messagesForProperty); @Override WrapperType getType(); @Override void registerBinding(Binding binding); @Override String toString();  }