Code example for Document

Methods: getImplementation

0
    /** 
     * Runs the test case. 
     *  
     * @throws Throwable 
     *             Any uncaught exception causes test to fail 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL, 
        notes = "Verifies that hasFeature returns true value.", 
        method = "hasFeature", 
        args = {java.lang.String.class, java.lang.String.class}
    ) 
    public void testHasFeatureCore() throws Throwable { 
        Document doc;
        DOMImplementation domImpl;
        boolean state;
        doc = (Document) load("staff", builder);
        domImpl = doc.getImplementation();
        state = domImpl.hasFeature("core", "2.0");
        assertTrue("domimplementationFeaturecoreAssert", state);
    }