@Test void myTest(){ ClientRequest mock = EasyMock.createMock(ClientRequest.class); mock.delete(2); //test if resource with id=2 is deleted or something similar EasyMock.replay(mock); invokeDelete(mock); EasyMock.verify(mock); }
/** * @see org.jboss.resteasy.client.ClientRequest#delete(Class) */ @Override public <T> ClientResponse<T> delete(Class<T> returnType) throws Exception { ClientResponse<T> response = super.delete(returnType); handlePotentialServerError(response); return response; }
public <T> ClientResponse<T> delete(Class<T> returnType) throws Exception { BaseClientResponse response = (BaseClientResponse) delete(); response.setReturnType(returnType); return response; }
/** * @see org.jboss.resteasy.client.ClientRequest#delete(java.lang.Class) */ @Override public <T> ClientResponse<T> delete(Class<T> returnType) throws Exception { ClientResponse<T> response = super.delete(returnType); handlePotentialServerError(response); return response; }
/** * @see org.jboss.resteasy.client.ClientRequest#delete() */ @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public ClientResponse delete() throws Exception { ClientResponse response = super.delete(); handlePotentialServerError(response); return response; }
/** * @see org.jboss.resteasy.client.ClientRequest#delete() */ @SuppressWarnings({ "unchecked", "rawtypes" }) @Override public ClientResponse delete() throws Exception { ClientResponse response = super.delete(); handlePotentialServerError(response); return response; }
public <T> ClientResponse<T> delete(Class<T> returnType) throws Exception { BaseClientResponse response = (BaseClientResponse) delete(); response.setReturnType(returnType); return response; }
public <T> ClientResponse<T> delete(Class<T> returnType, Type genericType) throws Exception { BaseClientResponse response = (BaseClientResponse) delete(); response.setReturnType(returnType); response.setGenericReturnType(genericType); return response; }
public <T> ClientResponse<T> delete(Class<T> returnType, Type genericType) throws Exception { BaseClientResponse response = (BaseClientResponse) delete(); response.setReturnType(returnType); response.setGenericReturnType(genericType); return response; }
public ClientResponse<String> delete(String url, MediaType mediaType) throws Exception { ClientRequest request = new ClientRequest(url); request.accept(mediaType); ClientResponse response = request.delete(); return response; }
public <T> ClientResponse<T> delete(GenericType type) throws Exception { BaseClientResponse response = (BaseClientResponse) delete(); response.setReturnType(type.getType()); response.setGenericReturnType(type.getGenericType()); return response; }
public <T> ClientResponse<T> delete(GenericType type) throws Exception { BaseClientResponse response = (BaseClientResponse) delete(); response.setReturnType(type.getType()); response.setGenericReturnType(type.getGenericType()); return response; }