Code example for Document

Methods: getDoctype

    * Runs the test case. 
    * @throws Throwable Any uncaught exception causes test to fail 
        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);
Experience pair programming with AI  Get Codota for Java