Code example for Document

Methods: getImplementation

0
     * @throws Throwable 
     *             Any uncaught exception causes test to fail 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL, 
        notes = "Doesn't check positive case.", 
        method = "getInternalSubset", 
        args = {} 
    ) 
    public void testGetInternalSubset() throws Throwable { 
        Document doc;
        DocumentType docType;
        DOMImplementation domImpl;
        String internal;
        String nullNS = null;
 
        doc = (Document) load("staffNS", builder);
        domImpl = doc.getImplementation();
        docType = domImpl.createDocumentType("l2:root", nullNS, nullNS);
        internal = docType.getInternalSubset();
        assertNull("internalSubsetNull", internal);