Skip to content

Commit

Permalink
Smack 3.2 doesn't come with the full XPP
Browse files Browse the repository at this point in the history
  • Loading branch information
ibauersachs committed Jul 25, 2017
1 parent 231ad9e commit 0d95c6d
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
import net.java.sip.communicator.impl.protocol.jabber.SmackV3InteroperabilityLayer;
import net.java.sip.communicator.service.protocol.jabber.AbstractSmackInteroperabilityLayer;
import org.jivesoftware.smack.packet.IQ;
import org.xmlpull.mxp1.MXParser;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
//import org.xmlpull.v1.XmlPullParserFactory;

import java.io.IOException;
import java.io.StringReader;
Expand Down Expand Up @@ -107,17 +108,21 @@ public class ColibriIQProviderTest extends TestCase
"</conference>" +
"</iq>";

XmlPullParserFactory xmlPullParserFactory;
// XmlPullParserFactory xmlPullParserFactory;
XmlPullParser xmlPullParser;
ColibriIQProvider colibriIQProvider;

public void setUp()
throws Exception
{
xmlPullParserFactory = XmlPullParserFactory.newInstance();
xmlPullParserFactory.setNamespaceAware(true);

xmlPullParser = xmlPullParserFactory.newPullParser();
// xmlPullParserFactory = XmlPullParserFactory.newInstance();
// xmlPullParserFactory.setNamespaceAware(true);
//
// xmlPullParser = xmlPullParserFactory.newPullParser();
xmlPullParser = new MXParser();
xmlPullParser.setFeature(
"http://xmlpull.org/v1/doc/features.html#process-namespaces",
true);

AbstractSmackInteroperabilityLayer.setImplementationClass(
SmackV3InteroperabilityLayer.class);
Expand Down

0 comments on commit 0d95c6d

Please sign in to comment.