Examples of subElementsPresentExact()


Examples of org.apache.vysper.xml.fragment.XMLElementVerifier.subElementsPresentExact()

       
        XMLElement formElement = new DataFormEncoder().getXML(form);
        XMLElementVerifier formElementVerifier = formElement.getVerifier();
        formElementVerifier.nameEquals("x");
        formElementVerifier.attributeEquals("type", "form");
        formElementVerifier.subElementsPresentExact(3);
        formElementVerifier.subElementPresent("title");
        formElementVerifier.subElementPresent("instructions");
        formElementVerifier.subElementPresent("field");

        XMLElement fieldElement = formElement.getSingleInnerElementsNamed("field");
View Full Code Here

Examples of org.apache.vysper.xml.fragment.XMLElementVerifier.subElementsPresentExact()

        formElementVerifier.subElementPresent("instructions");
        formElementVerifier.subElementPresent("field");

        XMLElement fieldElement = formElement.getSingleInnerElementsNamed("field");
        XMLElementVerifier fieldElementVerifier = fieldElement.getVerifier();
        fieldElementVerifier.subElementsPresentExact(3);
        formElementVerifier.subElementPresent("value");
        formElementVerifier.subElementPresent("option");
       

    }
View Full Code Here

Examples of org.apache.vysper.xml.fragment.XMLElementVerifier.subElementsPresentExact()

        Stanza resultStanza = infoIQHandler.handleGet(finalStanza, runtimeContext, new TestSessionContext(runtimeContext, new SessionStateHolder()));

        assertTrue(resultStanza.getVerifier().onlySubelementEquals("query", NamespaceURIs.XEP0030_SERVICE_DISCOVERY_INFO));
        XMLElement queryElement = resultStanza.getFirstInnerElement();
        XMLElementVerifier queryVerifier = queryElement.getVerifier();
        assertTrue(queryVerifier.subElementsPresentExact(4));
        List<XMLElement> innerElements = queryElement.getInnerElements();
        XMLElement xmlElement = innerElements.get(innerElements.size() - 1);
        XMLElementVerifier xmlElementVerifier = xmlElement.getVerifier();
        assertTrue(xmlElementVerifier.nameEquals("x"));
    }
View Full Code Here

Examples of org.apache.vysper.xml.fragment.XMLElementVerifier.subElementsPresentExact()

        XMLElement formElement = new DataFormEncoder().getXML(form);
        XMLElementVerifier formElementVerifier = formElement.getVerifier();
        formElementVerifier.nameEquals("x");
        formElementVerifier.attributeEquals("type", "form");
        formElementVerifier.subElementsPresentExact(3);
        formElementVerifier.subElementPresent("title");
        formElementVerifier.subElementPresent("instructions");
        formElementVerifier.subElementPresent("field");

        XMLElement fieldElement = formElement.getSingleInnerElementsNamed("field");
View Full Code Here

Examples of org.apache.vysper.xml.fragment.XMLElementVerifier.subElementsPresentExact()

        formElementVerifier.subElementPresent("instructions");
        formElementVerifier.subElementPresent("field");

        XMLElement fieldElement = formElement.getSingleInnerElementsNamed("field");
        XMLElementVerifier fieldElementVerifier = fieldElement.getVerifier();
        fieldElementVerifier.subElementsPresentExact(3);
        formElementVerifier.subElementPresent("value");
        formElementVerifier.subElementPresent("option");

    }
View Full Code Here

Examples of org.apache.vysper.xml.fragment.XMLElementVerifier.subElementsPresentExact()

        assertTrue(resultStanza.getVerifier().onlySubelementEquals("query",
                NamespaceURIs.XEP0030_SERVICE_DISCOVERY_INFO));
        XMLElement queryElement = resultStanza.getFirstInnerElement();
        XMLElementVerifier queryVerifier = queryElement.getVerifier();
        assertTrue(queryVerifier.subElementsPresentExact(4));
        List<XMLElement> innerElements = queryElement.getInnerElements();
        XMLElement xmlElement = innerElements.get(innerElements.size() - 1);
        XMLElementVerifier xmlElementVerifier = xmlElement.getVerifier();
        assertTrue(xmlElementVerifier.nameEquals("x"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.