This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Heap utilization statistics [MB] ##### | |
Used Memory:542 | |
Free Memory:895 | |
Total Memory:1437 | |
Max Memory:1437 | |
Executor sutting down! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |