axel/src/test/java/fr/xgouchet/xmleditor/test/XmlNodeAssert.java
public XmlNodeAssert isSystemDoctype(String root, String location, String internal) {
        isNotNull();

        hasType(XmlUtils.XML_DOCTYPE);

        XmlDocTypeDeclaration dtd = (XmlDocTypeDeclaration) actual.getData();
        assertThat(dtd.getDeclarationType())
                .isEqualTo(XmlDocTypeDeclaration.SYSTEM);

        XmlSystemDTD systemDTD = (XmlSystemDTD) dtd;

        assertThat(systemDTD.getRootElement())
                .overridingErrorMessage("Expected DTD root to be <%s> but was <%s>", root, systemDTD.getRootElement())
                .isEqualTo(root);

        assertThat(systemDTD.getLocation())
                .overridingErrorMessage("Expected DTD location to be <%s> but was <%s>", location, systemDTD.getLocation())
                .isEqualTo(location);

        assertThat(systemDTD.getInternalDefinition())
                .overridingErrorMessage("Expected DTD internal definition to be <%s> but was <%s>", internal, systemDTD.getInternalDefinition())
                .isEqualTo(internal);

        return this;
    }
/**
     * Verify that the actual node :
     * - is of type Doctype (with DTD type SYSTEM)
     * - has the given root and location valus
     *
     * @return this assertion object
     */
Verify that the actual node :
- is of type Doctype (with DTD type SYSTEM)
- has the given root and location valus

@return this assertion object
Verify that the actual node : - is of type Doctype ( with DTD type SYSTEM ) - has the given root and location valus @return this assertion object
public XmlNodeAssert isSystemDoctype(String root, String location, String internal) {
        isNotNull();
        hasType(XmlUtils.XML_DOCTYPE);
        XmlDocTypeDeclaration dtd = (XmlDocTypeDeclaration) actual.getData();
        assertThat(dtd.getDeclarationType())
                .isEqualTo(XmlDocTypeDeclaration.SYSTEM);
        XmlSystemDTD systemDTD = (XmlSystemDTD) dtd;
        assertThat(systemDTD.getRootElement())
                .overridingErrorMessage("Expected DTD root to be <%s> but was <%s>", root, systemDTD.getRootElement())
                .isEqualTo(root);
        assertThat(systemDTD.getLocation())
                .overridingErrorMessage("Expected DTD location to be <%s> but was <%s>", location, systemDTD.getLocation())
                .isEqualTo(location);
        assertThat(systemDTD.getInternalDefinition())
                .overridingErrorMessage("Expected DTD internal definition to be <%s> but was <%s>", internal, systemDTD.getInternalDefinition())
                .isEqualTo(internal);
        return this;
    }
public XmlNodeAssert isSystemDoctype ( String root , String location , String internal ) { isNotNull ( ) ; hasType ( XmlUtils . XML_DOCTYPE ) ; XmlDocTypeDeclaration dtd = ( XmlDocTypeDeclaration ) actual . getData ( ) ; assertThat ( dtd . getDeclarationType ( ) ) . isEqualTo ( XmlDocTypeDeclaration . SYSTEM ) ; XmlSystemDTD systemDTD = ( XmlSystemDTD ) dtd ; assertThat ( systemDTD . getRootElement ( ) ) . overridingErrorMessage ( "Expected DTD root to be <%s> but was <%s>" , root , systemDTD . getRootElement ( ) ) . isEqualTo ( root ) ; assertThat ( systemDTD . getLocation ( ) ) . overridingErrorMessage ( "Expected DTD location to be <%s> but was <%s>" , location , systemDTD . getLocation ( ) ) . isEqualTo ( location ) ; assertThat ( systemDTD . getInternalDefinition ( ) ) . overridingErrorMessage ( "Expected DTD internal definition to be <%s> but was <%s>" , internal , systemDTD . getInternalDefinition ( ) ) . isEqualTo ( internal ) ; return this ; }
Verify that the actual node :
 - is of type Doctype (with DTD type SYSTEM)
 - has the given root and location valus
Verify that the actual node : - is of type Doctype ( with DTD type SYSTEM ) - has the given root and location valus