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:
Gaston Dombiak 2004-11-06 14:57:43 +00:00 committed by gaston
parent d800f901a9
commit 658db03783
1 changed files with 7 additions and 0 deletions

View File

@ -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