41 public class VoiceXMLDTDTest {
42
43 private static final String INPUT_FILE1 = "voicexml.xml";
44
45 @Test
46 public void test() {
47 XMLInputFactory ifac = XMLInputFactory.newInstance();
48
49 try {
50 XMLStreamReader re = ifac.createXMLStreamReader(getClass().getResource(INPUT_FILE1).toExternalForm(),
51 this.getClass().getResourceAsStream(INPUT_FILE1));
52 while (re.hasNext()) {
53 int event = re.next();
54 }
55 } catch (Exception e) {
56 e.printStackTrace();
57 Assert.fail("Exception occured: " + e.getMessage());
58 }
59 }
60 }
61
|
41 public class VoiceXMLDTDTest {
42
43 private static final String INPUT_FILE1 = "voicexml.xml";
44
45 @Test
46 public void test() {
47 XMLInputFactory ifac = XMLInputFactory.newInstance();
48
49 try {
50 XMLStreamReader re = ifac.createXMLStreamReader(getClass().getResource(INPUT_FILE1).toExternalForm(),
51 this.getClass().getResourceAsStream(INPUT_FILE1));
52 while (re.hasNext()) {
53 int event = re.next();
54 }
55 } catch (Exception e) {
56 e.printStackTrace();
57 Assert.fail("Exception occured: " + e.getMessage());
58 }
59 }
60 }
|