Package org.cipango.sip

Examples of org.cipango.sip.TelURLImpl


    try { ((SipURI) readOnly.getURI()).setUser("foo2"); fail();} catch (IllegalStateException e) {}
   
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
   
    try { readOnly.setURI(new TelURLImpl("tel:+3398648;user=phone")); fail();} catch (IllegalStateException e) {}
   
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
    assertEquals(orig.toString(), readOnly.toString());
    Address clone = (Address) readOnly.clone();
View Full Code Here


  }

  @Test
  public void testTelUrl() throws Exception
  {
    TelURL orig = new TelURLImpl("tel:+3398648;user=phone");
    TelURL readOnly = new ReadOnlyTelURL((TelURL) orig.clone());
   
    assertEquals(orig, readOnly);
    try { readOnly.setParameter("foo", "bar"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeParameter("user");   fail();} catch (IllegalStateException e) {}
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
    assertEquals(orig.toString(), readOnly.toString());
    URI clone = (URI) readOnly.clone();
    clone.setParameter("a", "b");
    testSerializable(readOnly);
  }
View Full Code Here

TOP

Related Classes of org.cipango.sip.TelURLImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.