Examples of IceUdpTransportMethod


Examples of rocks.xmpp.extensions.jingle.transports.iceudp.model.IceUdpTransportMethod

        IQ iq = unmarshal(xml, IQ.class);
        Jingle jingle = iq.getExtension(Jingle.class);
        Assert.assertNotNull(jingle);
        Assert.assertTrue(jingle.getContents().get(0).getTransportMethod() instanceof IceUdpTransportMethod);
        IceUdpTransportMethod iceUdpTransport = (IceUdpTransportMethod) jingle.getContents().get(0).getTransportMethod();
        Assert.assertNotNull(iceUdpTransport);
        Assert.assertEquals(iceUdpTransport.getPassword(), "asd88fgpdd777uzjYhagZg");
        Assert.assertEquals(iceUdpTransport.getUserFragment(), "8hhy");
        Assert.assertEquals(iceUdpTransport.getCandidates().size(), 2);
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getComponent(), 1);
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getFoundation(), Short.valueOf((short) 1));
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getGeneration(), Short.valueOf((short) 0));
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getId(), "el0747fg11");
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getIpAddress(), "10.0.1.1");
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getNetwork(), Short.valueOf((short) 1));
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getPort(), (Integer) 8998);
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getPriority(), (Integer) 2130706431);
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getProtocol(), "udp");
        Assert.assertEquals(iceUdpTransport.getCandidates().get(0).getType(), Candidate.Type.HOST);
    }
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.