Search in sources :

Example 6 with WDefinitionList

use of com.github.bordertech.wcomponents.WDefinitionList in project wcomponents by BorderTech.

the class WDefinitionListRenderer_Test method testXssEscaping.

@Test
public void testXssEscaping() throws IOException, SAXException, XpathException {
    WDefinitionList list = new WDefinitionList();
    list.addTerm(getMaliciousAttribute("ui:term"), new WText("dummy"));
    assertSafeContent(list);
}
Also used : WText(com.github.bordertech.wcomponents.WText) WDefinitionList(com.github.bordertech.wcomponents.WDefinitionList) Test(org.junit.Test)

Aggregations

WDefinitionList (com.github.bordertech.wcomponents.WDefinitionList)6 Test (org.junit.Test)4 WText (com.github.bordertech.wcomponents.WText)3 WComponent (com.github.bordertech.wcomponents.WComponent)2 Margin (com.github.bordertech.wcomponents.Margin)1 WApplication (com.github.bordertech.wcomponents.WApplication)1 WHorizontalRule (com.github.bordertech.wcomponents.WHorizontalRule)1 XmlStringBuilder (com.github.bordertech.wcomponents.XmlStringBuilder)1 SystemException (com.github.bordertech.wcomponents.util.SystemException)1 ArrayList (java.util.ArrayList)1