I'm starting my Guice application in my JUnit integration tests with the following:
@BeforeAll public void beforeAll() { Guice.createInjector(new MyModule()); }
But I can't seem to get different test classes not to interfere with each other. I'm seeing an error message saying the port is already bound.
With Spring I would just apply @DirtiedContext to my class, but I can't find any way to do this with Guice. What do I do?
@DirtiedContext
1.4m articles
1.4m replys
5 comments
57.0k users