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

        hasType(XmlUtils.XML_TEXT);

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

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

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