Search in sources :

Example 6 with WShuffler

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

the class WShufflerRenderer_Test method testSpecialCharacters.

@Test
public void testSpecialCharacters() throws IOException, SAXException, XpathException {
    String optionA = "<A";
    String optionB = "B&B";
    String optionC = "C";
    WShuffler shuffler = new WShuffler(Arrays.asList(new String[] { optionA, optionB, optionC }));
    assertSchemaMatch(shuffler);
    assertXpathEvaluatesTo("3", "count(//ui:shuffler/ui:option)", shuffler);
}
Also used : WShuffler(com.github.bordertech.wcomponents.WShuffler) Test(org.junit.Test)

Aggregations

WShuffler (com.github.bordertech.wcomponents.WShuffler)6 Test (org.junit.Test)5 XmlStringBuilder (com.github.bordertech.wcomponents.XmlStringBuilder)1