mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-06 13:11:08 +01:00
test of sending message after sending a directed presence.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6481 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
dd6f76fcac
commit
7d9189e490
2 changed files with 43 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ public abstract class SmackTestCase extends TestCase {
|
|||
|
||||
/**
|
||||
* Constructor for SmackTestCase.
|
||||
* @param arg0
|
||||
* @param arg0 arg for SmackTestCase
|
||||
*/
|
||||
public SmackTestCase(String arg0) {
|
||||
super(arg0);
|
||||
|
|
@ -216,7 +216,7 @@ public abstract class SmackTestCase extends TestCase {
|
|||
}
|
||||
}
|
||||
// Login with the new test account
|
||||
getConnection(i).login("user" + i, "user" + i);
|
||||
getConnection(i).login("user" + i, "user" + i, "smack", sendInitialPresence());
|
||||
}
|
||||
// Let the server process the available presences
|
||||
Thread.sleep(150);
|
||||
|
|
@ -240,6 +240,10 @@ public abstract class SmackTestCase extends TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
protected boolean sendInitialPresence() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the context of the test case. We will first try to load the configuration from
|
||||
* a file whose name is conformed by the test case class name plus an .xml extension
|
||||
|
|
@ -269,6 +273,7 @@ public abstract class SmackTestCase extends TestCase {
|
|||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
/* Do Nothing */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -320,6 +325,7 @@ public abstract class SmackTestCase extends TestCase {
|
|||
systemStream.close();
|
||||
}
|
||||
catch (Exception e) {
|
||||
/* Do Nothing */
|
||||
}
|
||||
}
|
||||
return parsedOK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue