Package rocks.xmpp.extensions.amp.model.errors

Examples of rocks.xmpp.extensions.amp.model.errors.FailedRules


        Assert.assertNotNull(amp);
        Assert.assertEquals(amp.getStatus(), Rule.Action.ERROR);
        Assert.assertEquals(amp.getTo(), Jid.valueOf("bernardo@hamlet.lit/elsinore"));
        Assert.assertEquals(amp.getRules().size(), 1);
        Assert.assertTrue(message.getError().getExtension() instanceof FailedRules);
        FailedRules failedRules = (FailedRules) (message.getError().getExtension());
        Assert.assertEquals(failedRules.getRules().size(), 1);
        Assert.assertEquals(failedRules.getRules().get(0).getAction(), Rule.Action.ERROR);
        Assert.assertEquals(failedRules.getRules().get(0).getCondition(), Rule.Condition.DELIVER);
        Assert.assertEquals(failedRules.getRules().get(0).getValue(), "stored");
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.amp.model.errors.FailedRules

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.