Last active
June 12, 2017 06:44
-
-
Save vyo/b116e0099503d74082c341f5ec373dc4 to your computer and use it in GitHub Desktop.
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
@Mock | |
EchoUserProvider echoUserProviderMock; | |
@Override | |
protected Application configure() { | |
setup(); | |
ResourceConfig resourceConfig = new ResourceConfig( | |
EchoController.class, | |
EchoUserProvider.class); | |
resourceConfig.register(new AbstractBinder() { | |
protected void configure() { | |
bind(echoController).to(EchoController.class); | |
bind(echoUserProviderMock).to(EchoUserProvider.class); | |
} | |
}); | |
return resourceConfig; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment