Swapping out Guice modules between test and deployment
I have two implementations of a non-critical service that is injected by Guice. The implementations publish results to another system. When I’m running locally there is no way to connect to the other system. I have two classes that implement the publish interface: RealPublisher
and EchoPublisher
. EchoPublisher logs what it was passed and returns success.When I’m testing the application I use EchoPublisher
. I need that to change to RealPublisher
when I deploy.
Swapping out Guice modules between test and deployment
I have two implementations of a non-critical service that is injected by Guice. The implementations publish results to another system. When I’m running locally there is no way to connect to the other system. I have two classes that implement the publish interface: RealPublisher
and EchoPublisher
. EchoPublisher logs what it was passed and returns success.When I’m testing the application I use EchoPublisher
. I need that to change to RealPublisher
when I deploy.
Swapping out Guice modules between test and deployment
I have two implementations of a non-critical service that is injected by Guice. The implementations publish results to another system. When I’m running locally there is no way to connect to the other system. I have two classes that implement the publish interface: RealPublisher
and EchoPublisher
. EchoPublisher logs what it was passed and returns success.When I’m testing the application I use EchoPublisher
. I need that to change to RealPublisher
when I deploy.
Swapping out Guice modules between test and deployment
I have two implementations of a non-critical service that is injected by Guice. The implementations publish results to another system. When I’m running locally there is no way to connect to the other system. I have two classes that implement the publish interface: RealPublisher
and EchoPublisher
. EchoPublisher logs what it was passed and returns success.When I’m testing the application I use EchoPublisher
. I need that to change to RealPublisher
when I deploy.
Swapping out Guice modules between test and deployment
I have two implementations of a non-critical service that is injected by Guice. The implementations publish results to another system. When I’m running locally there is no way to connect to the other system. I have two classes that implement the publish interface: RealPublisher
and EchoPublisher
. EchoPublisher logs what it was passed and returns success.When I’m testing the application I use EchoPublisher
. I need that to change to RealPublisher
when I deploy.