Package org.exoplatform.services.rest.resource

Examples of org.exoplatform.services.rest.resource.SubResourceMethodMap.keySet()


   public void testSubResourceMethodSorting()
   {
      AbstractResourceDescriptor resource = new AbstractResourceDescriptorImpl(SampleResource2.class);
      SubResourceMethodMap srmm = resource.getSubResourceMethods();
      Collection<UriPattern> uris = srmm.keySet();
      Iterator<UriPattern> i = uris.iterator();
      // NOTE template will be normalized, first slash added
      assertEquals("/b/c/d", i.next().getTemplate());
      assertEquals("/b/c", i.next().getTemplate());
      assertEquals("/b/{c}", i.next().getTemplate());
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.