Commit 2cd286aa authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Added unit test from sk_lionheart.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5655 b35dd754-fafc-0310-a699-88a17e54d16e
parent cb55249d
package org.jivesoftware.util;
import org.jivesoftware.wildfire.gateway.PresenceType;
import org.jivesoftware.wildfire.gateway.Registration;
import org.jivesoftware.wildfire.gateway.TransportSession;
import org.jivesoftware.wildfire.gateway.TransportType;
import org.xmpp.packet.JID;
import org.jivesoftware.wildfire.gateway.protocols.msn.MSNSession;
import org.jivesoftware.wildfire.gateway.protocols.msn.MSNTransport;
public class MSNTransportTest
{
/**
* @param args
*/
public static void main(String[] args)
{
if (args.length!=4)
{
System.out.println("Syntaxe : java MSNTransportTest user password nickname jid");
System.exit(0);
}
Log.setDebugEnabled(true);
JID jid = new JID(args[3]);
Registration registration = new Registration(jid, TransportType.msn, args[0], args[1], args[2],true);
MSNTransport transport = new MSNTransport();
transport.jid = jid;
transport.setup(TransportType.msn, "MSN");
TransportSession session = transport.registrationLoggedIn(registration,jid,PresenceType.available,"online",new Integer(1));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment