axel/src/test/java/fr/xgouchet/xmleditor/test/XmlNodeAssert.java
public XmlNodeAssert isComment(String comment) {
        isNotNull();

        hasType(XmlUtils.XML_COMMENT);

        assertThat(((XmlComment) actual.getData()).getText())
                .overridingErrorMessage(
                        "Expected Comment to be <%s> but was <%s>",
                        comment,
                        ((XmlComment) actual.getData()).getText()
                )
                .isEqualTo(comment);

        return this;
    }
/**
     * Verify that the actual node :
     * - is of type Comment
     * - has the given text content
     *
     * @return this assertion object
     */
Verify that the actual node :
- is of type Comment
- has the given text content

@return this assertion object
Verify that the actual node : - is of type Comment - has the given text content @return this assertion object
public XmlNodeAssert isComment(String comment) {
        isNotNull();
        hasType(XmlUtils.XML_COMMENT);
        assertThat(((XmlComment) actual.getData()).getText())
                .overridingErrorMessage(
                        "Expected Comment to be <%s> but was <%s>",
                        comment,
                        ((XmlComment) actual.getData()).getText()
                )
                .isEqualTo(comment);
        return this;
    }
public XmlNodeAssert isComment ( String comment ) { isNotNull ( ) ; hasType ( XmlUtils . XML_COMMENT ) ; assertThat ( ( ( XmlComment ) actual . getData ( ) ) . getText ( ) ) . overridingErrorMessage ( "Expected Comment to be <%s> but was <%s>" , comment , ( ( XmlComment ) actual . getData ( ) ) . getText ( ) ) . isEqualTo ( comment ) ; return this ; }
Verify that the actual node :
 - is of type Comment
 - has the given text content
Verify that the actual node : - is of type Comment - has the given text content