mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Initial cut of constructor re-factor (SMACK-184).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6532 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
3915eae215
commit
92d1de2dce
12 changed files with 81 additions and 292 deletions
|
@ -31,7 +31,7 @@ public class LoginTest extends SmackTestCase {
|
|||
*/
|
||||
public void testInvalidLogin() {
|
||||
try {
|
||||
XMPPConnection connection = new XMPPConnection(getHost(), getPort());
|
||||
XMPPConnection connection = createConnection();
|
||||
connection.connect();
|
||||
try {
|
||||
// Login with an invalid user
|
||||
|
@ -59,8 +59,8 @@ public class LoginTest extends SmackTestCase {
|
|||
*/
|
||||
public void testSASLAnonymousLogin() {
|
||||
try {
|
||||
XMPPConnection conn1 = new XMPPConnection(getHost(), getPort());
|
||||
XMPPConnection conn2 = new XMPPConnection(getHost(), getPort());
|
||||
XMPPConnection conn1 = createConnection();
|
||||
XMPPConnection conn2 = createConnection();
|
||||
conn1.connect();
|
||||
conn2.connect();
|
||||
try {
|
||||
|
@ -133,7 +133,7 @@ public class LoginTest extends SmackTestCase {
|
|||
*/
|
||||
public void testLoginWithNoResource() {
|
||||
try {
|
||||
XMPPConnection conn = new XMPPConnection(getHost(), getPort());
|
||||
XMPPConnection conn = createConnection();
|
||||
conn.connect();
|
||||
try {
|
||||
conn.getAccountManager().createAccount("user_1", "user_1");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue