axel/src/test/java/fr/xgouchet/xmleditor/test/XmlNodeAssert.java
public XmlNodeAssert isElement(String qualifiedName, String namespaceUri) {
        isNotNull();

        hasType(XmlUtils.XML_ELEMENT);

        XmlElement element = (XmlElement) actual.getData();

        assertThat(element.getQualifiedName())
                .overridingErrorMessage(
                        "Expected qualified name to be <%s> but was <%s>",
                        qualifiedName,
                        element.getQualifiedName())
                .isEqualTo(qualifiedName);

        if (namespaceUri == null) {
            assertThat(element.getNamespace())
                    .overridingErrorMessage(
                            "Expected null namespace but was <%s>",
                            element.getNamespace())
                    .isNull();
        } else {
            assertThat(element.getNamespace().getUri())
                    .overridingErrorMessage(
                            "Expected namespace URI to be <%s> but was <%s>",
                            namespaceUri,
                            element.getNamespace().getUri())
                    .isEqualTo(namespaceUri);
        }

        return this;
    }
/**
     * Verify that the actual node :
     * - is of type Element
     * - has the given qualified name
     *
     * @return this assertion object
     */
Verify that the actual node :
- is of type Element
- has the given qualified name

@return this assertion object
Verify that the actual node : - is of type Element - has the given qualified name @return this assertion object
public XmlNodeAssert isElement(String qualifiedName, String namespaceUri) {
        isNotNull();
        hasType(XmlUtils.XML_ELEMENT);
        XmlElement element = (XmlElement) actual.getData();
        assertThat(element.getQualifiedName())
                .overridingErrorMessage(
                        "Expected qualified name to be <%s> but was <%s>",
                        qualifiedName,
                        element.getQualifiedName())
                .isEqualTo(qualifiedName);
        if (namespaceUri == null) {
            assertThat(element.getNamespace())
                    .overridingErrorMessage(
                            "Expected null namespace but was <%s>",
                            element.getNamespace())
                    .isNull();
        } else {
            assertThat(element.getNamespace().getUri())
                    .overridingErrorMessage(
                            "Expected namespace URI to be <%s> but was <%s>",
                            namespaceUri,
                            element.getNamespace().getUri())
                    .isEqualTo(namespaceUri);
        }
        return this;
    }
public XmlNodeAssert isElement ( String qualifiedName , String namespaceUri ) { isNotNull ( ) ; hasType ( XmlUtils . XML_ELEMENT ) ; XmlElement element = ( XmlElement ) actual . getData ( ) ; assertThat ( element . getQualifiedName ( ) ) . overridingErrorMessage ( "Expected qualified name to be <%s> but was <%s>" , qualifiedName , element . getQualifiedName ( ) ) . isEqualTo ( qualifiedName ) ; if ( namespaceUri == null ) { assertThat ( element . getNamespace ( ) ) . overridingErrorMessage ( "Expected null namespace but was <%s>" , element . getNamespace ( ) ) . isNull ( ) ; } else { assertThat ( element . getNamespace ( ) . getUri ( ) ) . overridingErrorMessage ( "Expected namespace URI to be <%s> but was <%s>" , namespaceUri , element . getNamespace ( ) . getUri ( ) ) . isEqualTo ( namespaceUri ) ; } return this ; }
Verify that the actual node :
 - is of type Element
 - has the given qualified name
Verify that the actual node : - is of type Element - has the given qualified name