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