mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02: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:
parent
d63a4f1fbe
commit
3915eae215
3 changed files with 24 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue