@Test public void shouldDoAValidPostCall() throws Exception { c.setMethod(CallAction.Method.POST); ExecuteResult result = c.executeAction(connectors); assertTrue(result.isSuccess()); verify(webServiceConnector).post(eq(BASE_URL), eq(TEST_API_PATH), any(), anySet(), eq("{}"), eq(0)); }
public void setMethod(Method method) { this.method = method; }
CallAction extends RESTSymbolAction { public void setMethod(Method method) { this.method = method; } }
CallAction extends RESTSymbolAction { public void setMethod(Method method) { this.method = method; } CallAction(); }
CallAction extends RESTSymbolAction { public void setMethod(Method method) { this.method = method; } CallAction(); @Override ExecuteResult execute(WebServiceConnector target); Method getMethod(); void setMethod(Method method); String getUrl(); void setUrl(String url); HashMap<String, String> getHeaders(); void setHeaders(HashMap<String, String> headers); Credentials getCredentials(); void setCredentials(Credentials credentials); HashMap<String, String> getCookies(); void setCookies(HashMap<String, String> cookies); String getData(); void setData(String data); int getTimeout(); void setTimeout(int timeout); String getBaseUrl(); void setBaseUrl(String baseUrl); }
CallAction extends RESTSymbolAction { public void setMethod(Method method) { this.method = method; } CallAction(); @Override ExecuteResult execute(WebServiceConnector target); Method getMethod(); void setMethod(Method method); String getUrl(); void setUrl(String url); HashMap<String, String> getHeaders(); void setHeaders(HashMap<String, String> headers); Credentials getCredentials(); void setCredentials(Credentials credentials); HashMap<String, String> getCookies(); void setCookies(HashMap<String, String> cookies); String getData(); void setData(String data); int getTimeout(); void setTimeout(int timeout); String getBaseUrl(); void setBaseUrl(String baseUrl);  }