MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / voiceXML

Method voiceXML

src/test/java/org/htmlunit/xml/XmlPageTest.java:304–320  ·  view source on GitHub ↗

@throws Exception if the test fails

()

Source from the content-addressed store, hash-verified

302 * @throws Exception if the test fails
303 */
304 @Test
305 public void voiceXML() throws Exception {
306 final String content =
307 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
308 + "<vxml xmlns=\"http://www.w3.org/2001/vxml\""
309 + " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""
310 + " xsi:schemaLocation=\"http://www.w3.org/2001/vxml "
311 + " http://www.w3.org/TR/voicexml20/vxml.xsd\""
312 + " version=\"2.0\">\n"
313 + " <form>\n"
314 + " <block>Hello World!</block>\n"
315 + " </form>\n"
316 + "</vxml>";
317
318 final XmlPage xmlPage = testDocument(content, "application/voicexml+xml");
319 assertEquals("vxml", xmlPage.getXmlDocument().getFirstChild().getNodeName());
320 }
321
322 /**
323 * @throws Exception if the test fails

Callers

nothing calls this directly

Calls 5

testDocumentMethod · 0.95
getXmlDocumentMethod · 0.95
assertEqualsMethod · 0.45
getNodeNameMethod · 0.45
getFirstChildMethod · 0.45

Tested by

no test coverage detected