mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +01:00
Added #getPort() method.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2413 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
d800f901a9
commit
658db03783
1 changed files with 7 additions and 0 deletions
|
@ -177,6 +177,10 @@ public abstract class SmackTestCase extends TestCase {
|
||||||
return host;
|
return host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected int getPort() {
|
||||||
|
return port;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the default groupchat service domain.
|
* Returns the default groupchat service domain.
|
||||||
*
|
*
|
||||||
|
@ -198,6 +202,9 @@ public abstract class SmackTestCase extends TestCase {
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
init();
|
init();
|
||||||
|
if (getMaxConnections() < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
connections = new XMPPConnection[getMaxConnections()];
|
connections = new XMPPConnection[getMaxConnections()];
|
||||||
try {
|
try {
|
||||||
// Connect to the server
|
// Connect to the server
|
||||||
|
|
Loading…
Reference in a new issue