diff --git a/test/org/jivesoftware/smack/test/SmackTestCase.java b/test/org/jivesoftware/smack/test/SmackTestCase.java index ccf74315c..50258f22e 100644 --- a/test/org/jivesoftware/smack/test/SmackTestCase.java +++ b/test/org/jivesoftware/smack/test/SmackTestCase.java @@ -177,6 +177,10 @@ public abstract class SmackTestCase extends TestCase { return host; } + protected int getPort() { + return port; + } + /** * Returns the default groupchat service domain. * @@ -198,6 +202,9 @@ public abstract class SmackTestCase extends TestCase { protected void setUp() throws Exception { super.setUp(); init(); + if (getMaxConnections() < 1) { + return; + } connections = new XMPPConnection[getMaxConnections()]; try { // Connect to the server