Пример #1
0
 public void testDifferent() throws Exception {
   for (int i = 0; i < different.length; i++) {
     SipURI uri1 = sipUri(different[i][0]);
     SipURI uri2 = sipUri(different[i][1]);
     assertFalse(uri1 + " is the same as " + uri2, uri1.equals(uri2));
     assertFalse(uri2 + " is the same as " + uri1, uri2.equals(uri1));
   }
 }
Пример #2
0
 public void testEqual() throws Exception {
   for (int i = 0; i < equal.length; i++) {
     SipURI uri1 = sipUri(equal[i][0]);
     SipURI uri2 = sipUri(equal[i][1]);
     assertTrue(uri1 + " is different as " + uri2, uri1.equals(uri2));
     assertTrue(uri2 + " is different as " + uri1, uri2.equals(uri1));
   }
 }