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

        hasType(XmlUtils.XML_DOCTYPE);

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

        XmlPublicDTD publicDTD = (XmlPublicDTD) dtd;

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

        assertThat(publicDTD.getName())
                .overridingErrorMessage("Expected DTD name to be <%s> but was <%s>", name, publicDTD.getName())
                .isEqualTo(name);

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

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

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

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