Echo Test Added

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7052 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo 2007-02-08 22:39:09 +00:00 committed by thiago
parent 754d47fedf
commit 94a7762d9d
1 changed files with 5 additions and 2 deletions

View File

@ -371,8 +371,11 @@ public class STUNResolverTest extends SmackTestCase {
TransportCandidate.CandidateEcho ce2 = c2.getCandidateEcho();
for (int i = 0; i < 10; i++) {
assertTrue(ce1.test(InetAddress.getByName("localhost"), 22444,100));
assertTrue(ce2.test(InetAddress.getByName("localhost"), 22222,100));
assertTrue(ce1.test(InetAddress.getByName("localhost"), 22444, 100));
System.out.println("Bind OK");
}
for (int i = 0; i < 10; i++) {
assertTrue(ce2.test(InetAddress.getByName("localhost"), 22222, 100));
System.out.println("Bind OK");
}