Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ezhov-da/e373aa4e7116af9b68bc0a926dac65ed to your computer and use it in GitHub Desktop.
Save ezhov-da/e373aa4e7116af9b68bc0a926dac65ed to your computer and use it in GitHub Desktop.
java ee jaxrs resteasy тестирование
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