Code example for Document

Methods: getDoctype

0
    } 
 
   /** 
    * Runs the test case. 
    * @throws Throwable Any uncaught exception causes test to fail 
    */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL, 
        notes = "Doesn't verify that getInternalSubset method returns the internal subset as a string.", 
        method = "getInternalSubset", 
        args = {} 
    ) 
   public void testGetInternalSubset() throws Throwable { 
      Document doc;
      DocumentType docType;
      String internal;
      doc = (Document) load("staff2", builder);
      docType = doc.getDoctype();
      internal = docType.getInternalSubset();
      assertNull("internalSubsetNull", internal);
      }