google / acai

Testing library for JUnit4 and Guice.
Apache License 2.0
76 stars 29 forks source link

Fail on misuse of TestScoped bindings #22

Open nlativy opened 6 years ago

nlativy commented 6 years ago

A user reported an issue where they were binding an instance in test scope and then injecting that into a singleton scoped object. Apparently this does not produce an error from Acai but leads to incorrect behavior in the tests.

If possible it would be nice to fail fast in such a scenario.