Package org.cipango.sip

Examples of org.cipango.sip.ParameterableImpl


  }

  @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) {}
   
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
    assertEquals(orig.toString(), readOnly.toString());
    Parameterable clone = (Parameterable) readOnly.clone();
    clone.setParameter("a", "b");
    testSerializable(readOnly);
  }
View Full Code Here


      return new AuthInfoImpl();
    }

    public Parameterable createParameterable(String s) throws ServletParseException
    {
      return new ParameterableImpl(s);
    }
View Full Code Here

TOP

Related Classes of org.cipango.sip.ParameterableImpl

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.