Skip to content

Instantly share code, notes, and snippets.

import org.jboss.resteasy.core.Dispatcher;
import org.jboss.resteasy.mock.*;
public class HTTPServiceTest {
/**
* Return a multipart/form-data MockHttpRequest
* @param parts Key is the name of the part, value is either a String or a File.
* @return
*/
private MockHttpRequest multipartRequest(String uri, Map parts) throws URISyntaxException, IOException {
MockHttpRequest req = MockHttpRequest.post(uri);
##### Heap utilization statistics [MB] #####
Used Memory:542
Free Memory:895
Total Memory:1437
Max Memory:1437
Executor sutting down!