public void testStringAttributeIgnoresStaticSetter() { // Assumes setPopupText() is overloaded such that there is a static // setPopupText(Foo, String) method. ClickyLink clicky = widgetUi.customLinkWidget; assertEquals( "overloaded setter should have been called", "That tickles!", clicky.getPopupText()); }
public void testWidgetAttributeNoMessageWithFunnyChars() { ClickyLink clicky = widgetUi.funnyCharsAttributeWidget; String t = clicky.getPopupText(); assertEquals("funny characters \\ \" ' ' & < > > { }", t); }