31 import org.testng.annotations.Listeners;
32 import org.w3c.dom.CharacterData;
33 import org.w3c.dom.Document;
34 import org.xml.sax.SAXException;
35
36 /*
37 * @test
38 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/functional
39 * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.CommentTest
40 * @run testng/othervm org.w3c.dom.ptests.CommentTest
41 * @summary Test for Comment implementation returned by Document.createComment(String)
42 */
43 @Listeners({jaxp.library.FilePolicy.class})
44 public class CommentTest extends AbstractCharacterDataTest {
45 @Override
46 protected CharacterData createCharacterData(String text) throws IOException, SAXException, ParserConfigurationException {
47 Document document = createNewDocument();
48 return document.createComment(text);
49 }
50 }
51
|
31 import org.testng.annotations.Listeners;
32 import org.w3c.dom.CharacterData;
33 import org.w3c.dom.Document;
34 import org.xml.sax.SAXException;
35
36 /*
37 * @test
38 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/functional
39 * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.CommentTest
40 * @run testng/othervm org.w3c.dom.ptests.CommentTest
41 * @summary Test for Comment implementation returned by Document.createComment(String)
42 */
43 @Listeners({jaxp.library.FilePolicy.class})
44 public class CommentTest extends AbstractCharacterDataTest {
45 @Override
46 protected CharacterData createCharacterData(String text) throws IOException, SAXException, ParserConfigurationException {
47 Document document = createNewDocument();
48 return document.createComment(text);
49 }
50 }
|