Last active
March 10, 2019 12:23
-
-
Save ezhov-da/e373aa4e7116af9b68bc0a926dac65ed to your computer and use it in GitHub Desktop.
java ee jaxrs resteasy тестирование
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
Dispatcher dispatcher = MockDispatcherFactory.createDispatcher(); | |
POJOResourceFactory noDefaults = new POJOResourceFactory(ProcDefinitionResource.class); | |
dispatcher.getRegistry().addResourceFactory(noDefaults); | |
MockHttpRequest request = MockHttpRequest.get("/process"); | |
MockHttpResponse response = new MockHttpResponse(); | |
dispatcher.invoke(request, response); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment