Search in sources :

Example 6 with IQProvider

use of org.jivesoftware.smack.provider.IQProvider in project Smack by igniterealtime.

the class JingleProviderTest method testProviderManager.

public void testProviderManager() {
    IQProvider iqProv;
    String elementNamee = Jingle.getElementName();
    String nameSpace = Jingle.getNamespace();
    System.out.println("Testing if the Jingle IQ provider is registered...");
    // Verify that the Jingle IQProvider is registered.
    iqProv = (IQProvider) ProviderManager.getInstance().getIQProvider(elementNamee, nameSpace);
    assertNotNull(iqProv);
}
Also used : IQProvider(org.jivesoftware.smack.provider.IQProvider)

Aggregations

IQProvider (org.jivesoftware.smack.provider.IQProvider)4 IQ (org.jivesoftware.smack.packet.IQ)3 EmptyResultIQ (org.jivesoftware.smack.packet.EmptyResultIQ)2 ErrorIQ (org.jivesoftware.smack.packet.ErrorIQ)2 IqData (org.jivesoftware.smack.packet.IqData)2 UnparsedIQ (org.jivesoftware.smack.packet.UnparsedIQ)2 XMPPError (org.jivesoftware.smack.packet.XMPPError)2 IqProvider (org.jivesoftware.smack.provider.IqProvider)2 DataInputStream (java.io.DataInputStream)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 Reader (java.io.Reader)1 StringReader (java.io.StringReader)1 StanzaError (org.jivesoftware.smack.packet.StanzaError)1 XmlEnvironment (org.jivesoftware.smack.packet.XmlEnvironment)1 AbstractProvider (org.jivesoftware.smack.provider.AbstractProvider)1 Provider (org.jivesoftware.smack.provider.Provider)1 XmlPullParser (org.jivesoftware.smack.xml.XmlPullParser)1 DiscoverInfo (org.jivesoftware.smackx.packet.DiscoverInfo)1 DiscoverInfoProvider (org.jivesoftware.smackx.provider.DiscoverInfoProvider)1