Package org.codehaus.xfire.xmpp

Source Code of org.codehaus.xfire.xmpp.SoapIQProviderTest

package org.codehaus.xfire.xmpp;

import org.codehaus.xfire.soap.Soap11;
import org.codehaus.xfire.soap.SoapVersion;
import org.codehaus.xfire.test.AbstractXFireTest;
import org.jivesoftware.smack.provider.ProviderManager;

/**
* @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
*/
public class SoapIQProviderTest
    extends AbstractXFireTest
{
    public void testIQ()
        throws Exception
    {
        new SoapIQProvider();
    
        SoapVersion v11 = Soap11.getInstance();
        Object provider = ProviderManager.getIQProvider(v11.getEnvelope().getLocalPart(),
                                                        v11.getEnvelope().getNamespaceURI());
        assertNotNull("Got null provider for " + v11.getEnvelope().getLocalPart()
                + " in namespace " + v11.getEnvelope().getNamespaceURI(), provider);
        assertTrue(provider instanceof SoapIQProvider);
    }
}
TOP

Related Classes of org.codehaus.xfire.xmpp.SoapIQProviderTest

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.