-
Notifications
You must be signed in to change notification settings - Fork 96
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
Instantiating a test configuration instance from a test yaml file. #61
Comments
Are you trying to test the Have a look at https://github.com/HubSpot/dropwizard-guice/blob/master/src/test/java/com/hubspot/dropwizard/guice/InjectedIntegrationTest.java instead |
Hi yunspace. Thank you for your response. I'm trying to do some integration test set up to be able to test DAOs against a test environment. I'll take a look at your suggestion. |
@yunspace what's the best pattern to initialize my module so my DAO or controller get injected using the test env? |
Can you clarify what is this I would suggest maybe try:
|
Hi all, I'm having issues instantiating a test configuration instance for my local dev environment.
after following the example here: https://github.com/HubSpot/dropwizard-guice/blob/master/src/test/java/com/hubspot/dropwizard/guice/GuiceBundleTest.java
(in that example the author does a "new Configuration()" but I interested in loading the test info located at "config-test.yml" instead.
I wrote this class:
and got a:
I spend around 2 hours trying to figure this out. If you have any hint on how to get the server to start please let me know.
Thanks
The text was updated successfully, but these errors were encountered: