@Test public void canTranslate() { FixedMethodStrategy strategy = new FixedMethodStrategy("abc", list, methods(HttpMethod.POST), control, 0, new String[] {}); when(control.matches("/clients/add")).thenReturn(true); ResourceMethod match = strategy.resourceMethod(request, "/clients/add"); assertThat(match, is(VRaptorMatchers.resourceMethod(method("list")))); verify(control, only()).fillIntoRequest("/clients/add", request); }
public ResourceMethod resourceMethod(MutableRequest request, String uri) { parameters.fillIntoRequest(uri, request); return this.resourceMethod; }
FixedMethodStrategy implements Route { public ResourceMethod resourceMethod(MutableRequest request, String uri) { parameters.fillIntoRequest(uri, request); return this.resourceMethod; } }
FixedMethodStrategy implements Route { public ResourceMethod resourceMethod(MutableRequest request, String uri) { parameters.fillIntoRequest(uri, request); return this.resourceMethod; } FixedMethodStrategy(String originalUri, ResourceMethod method, Set<HttpMethod> methods,
			ParametersControl control, int priority, String[] parameterNames); }
FixedMethodStrategy implements Route { public ResourceMethod resourceMethod(MutableRequest request, String uri) { parameters.fillIntoRequest(uri, request); return this.resourceMethod; } FixedMethodStrategy(String originalUri, ResourceMethod method, Set<HttpMethod> methods,
			ParametersControl control, int priority, String[] parameterNames); boolean canHandle(Class<?> type, Method method); ResourceMethod resourceMethod(MutableRequest request, String uri); EnumSet<HttpMethod> allowedMethods(); boolean canHandle(String uri); String urlFor(Class<?> type, Method m, Object... params); int getPriority(); String getOriginalUri(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
FixedMethodStrategy implements Route { public ResourceMethod resourceMethod(MutableRequest request, String uri) { parameters.fillIntoRequest(uri, request); return this.resourceMethod; } FixedMethodStrategy(String originalUri, ResourceMethod method, Set<HttpMethod> methods,
			ParametersControl control, int priority, String[] parameterNames); boolean canHandle(Class<?> type, Method method); ResourceMethod resourceMethod(MutableRequest request, String uri); EnumSet<HttpMethod> allowedMethods(); boolean canHandle(String uri); String urlFor(Class<?> type, Method m, Object... params); int getPriority(); String getOriginalUri(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }