You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change such that when @Inject field has a value then it's expected to be a provided test double and the instance value is registered and used for wiring.
@InjectHelloServicehelloService; // Get this OUT of the DI BeanScope@InjectHelloDatamyTestDouble = () -> "ImActuallyATestDouble"; // Put this INTO the DI BeanScope@Testvoidhello_1() {
assertEquals("hello+ImActuallyATestDouble", helloService.hello());
assertEquals("ImActuallyATestDouble", myTestDouble.helloData());
}
The text was updated successfully, but these errors were encountered:
Add support for
@Setup
methods like:Change such that when
@Inject
field has a value then it's expected to be a provided test double and the instance value is registered and used for wiring.The text was updated successfully, but these errors were encountered: