Skip to content

Instantly share code, notes, and snippets.

@billybong
Created August 23, 2018 19:53
Show Gist options
  • Save billybong/317f87507957646e22ac470f648a3dac to your computer and use it in GitHub Desktop.
Save billybong/317f87507957646e22ac470f648a3dac to your computer and use it in GitHub Desktop.
var providesStubRemoteApi = new Factories(){
Optional<RemoteApi> remoteApi(){
RemoteApi remoteApi = MyStubRemoteApi();
return Optional.of(remoteApi);
}
}
var app = bootstrapper.bootstrap(config, providesStubRemoteApi);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment