Commit b44b323b authored by guus's avatar guus

Deleting a test that depends on third party DNS servers (and therefor was unpredictable).

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12992 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1b5a89c0
......@@ -10,12 +10,14 @@ package org.jivesoftware.util;
import java.io.FileInputStream;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Iterator;
import java.lang.reflect.Method;
import junit.framework.TestCase;
import org.jivesoftware.admin.AdminConsole;
import org.dom4j.Element;
import org.jivesoftware.admin.AdminConsole;
public class AdminConsoleTest extends TestCase {
......
package org.jivesoftware.util;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import junit.framework.TestCase;
/**
* Basic tests for code used by CertificateManager.
*
......
......@@ -8,6 +8,7 @@
package org.jivesoftware.util;
import junit.framework.TestCase;
import org.xmpp.packet.JID;
/**
......
......@@ -10,6 +10,7 @@
package org.jivesoftware.util;
import junit.framework.TestCase;
import org.jivesoftware.openfire.ldap.LdapManager;
/**
......
/**
* $RCSfile$
* $Revision: 3144 $
* $Date: 2005-12-01 14:20:11 -0300 (Thu, 01 Dec 2005) $
*
* Copyright (C) 2004-2008 Jive Software. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jivesoftware.util;
import junit.framework.TestCase;
import org.jivesoftware.openfire.stun.StunServerAddress;
import java.util.List;
import java.util.ArrayList;
public class STUNServerTest extends TestCase {
public void testEqualsStunServerAddress() {
StunServerAddress addr0 = new StunServerAddress("apollo", "10000");
StunServerAddress addr1 = new StunServerAddress("apollo", "10000");
StunServerAddress addr2 = new StunServerAddress("70.98.39.225", "10002");
StunServerAddress addr3 = new StunServerAddress("jivesoftware.com", "10002");
StunServerAddress addr4 = new StunServerAddress("jivesoftware.com", "10003");
assertTrue(addr0.equals(addr1));
assertFalse(addr0.equals(addr2));
assertTrue(addr2.equals(addr3));
assertFalse(addr3.equals(addr4));
List<StunServerAddress> list = new ArrayList<StunServerAddress>();
list.add(addr0);
list.add(addr1);
list.add(addr2);
list.add(addr4);
assertTrue(list.contains(addr3));
}
}
......@@ -8,8 +8,8 @@
package org.jivesoftware.util;
import java.io.File;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
/**
......
......@@ -20,10 +20,10 @@
package org.jivesoftware.util;
import junit.framework.TestCase;
import java.io.ByteArrayInputStream;
import junit.framework.TestCase;
public class XMLPropertiesTest extends TestCase {
public void testAttributes() throws Exception {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment