Beispiel #1
0
 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());
 }
Beispiel #2
0
 public void testWidgetAttributeNoMessageWithFunnyChars() {
   ClickyLink clicky = widgetUi.funnyCharsAttributeWidget;
   String t = clicky.getPopupText();
   assertEquals("funny characters \\ \" ' ' & < > > { }", t);
 }