Package org.eclipse.ecf.remoteservice.rest.identity

Examples of org.eclipse.ecf.remoteservice.rest.identity.RestNamespace.createInstance()


    RestNamespace namespace = new RestNamespace(RestNamespace.NAME, null);
    Object[] parameters;
    try {
      String url = "http://www.twitter.com";
      parameters = new Object[] {new URL(url)};
      ID id = namespace.createInstance(parameters);
      assertEquals(url, id.getName());
    } catch (MalformedURLException e) {
      fail();
    }   
  }
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.