1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-07 05:31:08 +01:00

Small fixes and update to latest Chat API.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6531 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2007-01-04 22:34:06 +00:00 committed by gato
parent d63a4f1fbe
commit 3915eae215
3 changed files with 24 additions and 21 deletions

View file

@ -53,8 +53,8 @@
package org.jivesoftware.smackx;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.PacketCollector;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.filter.ThreadFilter;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.test.SmackTestCase;
@ -127,6 +127,7 @@ public class FormTest extends SmackTestCase {
// Get the message with the form to fill out
Message msg2 = (Message)collector2.nextResult(2000);
assertNotNull("Messge not found", msg2);
// Retrieve the form to fill out
Form formToRespond = Form.getFormFrom(msg2);
assertNotNull(formToRespond);
@ -161,6 +162,7 @@ public class FormTest extends SmackTestCase {
// Get the message with the completed form
Message msg3 = (Message) collector.nextResult(2000);
assertNotNull("Messge not found", msg3);
// Retrieve the completed form
completedForm = Form.getFormFrom(msg3);
assertNotNull(completedForm);

View file

@ -1,8 +1,8 @@
package org.jivesoftware.smackx;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.util.StringUtils;
import org.jivesoftware.smack.test.SmackTestCase;
import org.jivesoftware.smack.util.StringUtils;
import org.jivesoftware.smackx.packet.VCard;
import org.jivesoftware.smackx.provider.VCardProvider;
@ -63,7 +63,7 @@ public class VCardTest extends SmackTestCase {
public void testNoWorkHomeSpecifier_EMAIL() throws Throwable {
VCard card = VCardProvider._createVCardFromXml("<vcard><EMAIL><USERID>foo@fee.www.bar</USERID></EMAIL></vcard>");
assertEquals("foo@fee.www.bar", card.getEmailWork());
assertEquals("foo@fee.www.bar", card.getEmailHome());
}
public void testNoWorkHomeSpecifier_TEL() throws Throwable {