axel/src/test/java/fr/xgouchet/xmleditor/test/XmlNodeAssert.java
public XmlNodeAssert isInternalDoctype(String root, String definition) {
        isNotNull();

        hasType(XmlUtils.XML_DOCTYPE);

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

        XmlInternalDTD internalDTD = (XmlInternalDTD) dtd;

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

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

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

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