예제 #1
0
 @Test
 public void bodyWithSpacesAndQuotes() throws Exception {
   List<StaxEvent> seList = doTest("spacesAndQuotes.xml");
   assertEquals(3, seList.size());
   BodyEvent be = (BodyEvent) seList.get(1);
   assertEquals("[x][x] \"xyz\"%n", be.getText());
 }
예제 #2
0
  @Test
  public void testProcessingOfTextWithEntityCharacters() throws Exception {
    List<StaxEvent> seList = doTest("ampEvent.xml");
    StatusManager sm = context.getStatusManager();
    assertTrue(statusChecker.getHighestLevel(0) == Status.INFO);
    // dump(seList);
    assertEquals(3, seList.size());

    BodyEvent be = (BodyEvent) seList.get(1);
    assertEquals("xxx & yyy", be.getText());
  }