Package rocks.xmpp.extensions.compress.model

Examples of rocks.xmpp.extensions.compress.model.Failure


    @Test
    public void unmarshalFailureUnsupportedMethod() throws XMLStreamException, JAXBException {
        String xml = "<failure xmlns='http://jabber.org/protocol/compress'>\n" +
                "  <unsupported-method/>\n" +
                "</failure>\n";
        Failure failure = unmarshal(xml, Failure.class);

        Assert.assertNotNull(failure);
        Assert.assertTrue(failure.getCondition() instanceof Failure.UnsupportedMethod);
    }
View Full Code Here


    @Test
    public void unmarshalFailureSetupFailed() throws XMLStreamException, JAXBException {
        String xml = "<failure xmlns='http://jabber.org/protocol/compress'>\n" +
                "  <setup-failed/>\n" +
                "</failure>\n";
        Failure failure = unmarshal(xml, Failure.class);

        Assert.assertNotNull(failure);
        Assert.assertTrue(failure.getCondition() instanceof Failure.SetupFailed);
    }
View Full Code Here

    @Test
    public void unmarshalFailureProcessingFailed() throws XMLStreamException, JAXBException {
        String xml = "<failure xmlns='http://jabber.org/protocol/compress'>\n" +
                "  <processing-failed/>\n" +
                "</failure>\n";
        Failure failure = unmarshal(xml, Failure.class);

        Assert.assertNotNull(failure);
        Assert.assertTrue(failure.getCondition() instanceof Failure.ProcessingFailed);
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.compress.model.Failure

Copyright © 2018 www.massapicom. 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.