@Test public void processesResourceWithOverriddenMethods() throws Exception { ResourceDescriptor resource = new AbstractResourceDescriptor(Resource2.class); assertEquals(1, resource.getResourceMethods().get("GET").size()); assertEquals(1, resource.getResourceMethods().get("POST").size()); }
@Override public Map<String, List<ResourceMethodDescriptor>> getResourceMethods() { return resourceMethods; }
AbstractResourceDescriptor extends BaseObjectModel implements ResourceDescriptor { @Override public Map<String, List<ResourceMethodDescriptor>> getResourceMethods() { return resourceMethods; } }
AbstractResourceDescriptor extends BaseObjectModel implements ResourceDescriptor { @Override public Map<String, List<ResourceMethodDescriptor>> getResourceMethods() { return resourceMethods; } AbstractResourceDescriptor(Class<?> resourceClass);  AbstractResourceDescriptor(String path, Class<?> resourceClass);  AbstractResourceDescriptor(Object resource);  AbstractResourceDescriptor(String path, Object resource); }
AbstractResourceDescriptor extends BaseObjectModel implements ResourceDescriptor { @Override public Map<String, List<ResourceMethodDescriptor>> getResourceMethods() { return resourceMethods; } AbstractResourceDescriptor(Class<?> resourceClass);  AbstractResourceDescriptor(String path, Class<?> resourceClass);  AbstractResourceDescriptor(Object resource);  AbstractResourceDescriptor(String path, Object resource); @Override PathValue getPathValue(); @Override Map<String, List<ResourceMethodDescriptor>> getResourceMethods(); @Override Map<UriPattern, SubResourceLocatorDescriptor> getSubResourceLocators(); @Override Map<UriPattern, Map<String, List<SubResourceMethodDescriptor>>> getSubResourceMethods(); @Override UriPattern getUriPattern(); @Override boolean isRootResource(); @Override String toString(); }
AbstractResourceDescriptor extends BaseObjectModel implements ResourceDescriptor { @Override public Map<String, List<ResourceMethodDescriptor>> getResourceMethods() { return resourceMethods; } AbstractResourceDescriptor(Class<?> resourceClass);  AbstractResourceDescriptor(String path, Class<?> resourceClass);  AbstractResourceDescriptor(Object resource);  AbstractResourceDescriptor(String path, Object resource); @Override PathValue getPathValue(); @Override Map<String, List<ResourceMethodDescriptor>> getResourceMethods(); @Override Map<UriPattern, SubResourceLocatorDescriptor> getSubResourceLocators(); @Override Map<UriPattern, Map<String, List<SubResourceMethodDescriptor>>> getSubResourceMethods(); @Override UriPattern getUriPattern(); @Override boolean isRootResource(); @Override String toString();  }