Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to test URL generation within unit test #53

Open
mikesir87 opened this issue Aug 14, 2016 · 0 comments
Open

Ability to test URL generation within unit test #53

mikesir87 opened this issue Aug 14, 2016 · 0 comments

Comments

@mikesir87
Copy link
Contributor

It would be nice if there was a way to bootstrap the UrlResolverProducer without needing a ServletContext. Not 100% what it would look like, but if there was a way to provide enough context to still allow everything to bootstrap.

Big reason why... I've written a resource that (for some reason) is telling me I'm missing a @ModelPathSpec, even though I've got one defined. So, figured I'd try setting a breakpoint and checking things out. But, since the test is running through Arquillian, the code is running on the server, where I can't set a breakpoint. I could just deploy the application and debug from there, but it would be nice to write a unit test where I create mock objects, use my ViewTemplate, and then check out the result/set breakpoints as needed.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant