Package org.cipango.sip

Examples of org.cipango.sip.ParameterableImpl.clone()


  @Test
  public void testParameterable() throws Exception
  {
    Parameterable orig = new ParameterableImpl("\"Hello World\" <sip:foo@bar.com;transport=tcp>;tag=12345");
    Parameterable readOnly = new ReadOnlyParameterable((Parameterable) orig.clone());
   
    assertEquals(orig, readOnly);
    try { readOnly.setParameter("foo", "bar"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeParameter("tag"); fail();} catch (IllegalStateException e) {}
    try { readOnly.setValue(""); fail();} catch (IllegalStateException e) {}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.