Re: CdiTestRunner - how to test Mocked Dependent Beans

2018-04-13 Thread Gerhard Petracek
hi stephen, #1 you need to register your mock correctly (in your case with NamedLiteral, since you are using @Named) #2 dependent-scoped beans are a bit special. if you are using a dynamic lookup via BeanProvider#getContextualReference in your test, the instance gets created/injected after you re

Re: CdiTestRunner - how to test Mocked Dependent Beans

2018-04-13 Thread Stephen More
Thanks gerhard, can you elaborate on how to accomplish #1 and #2 ? On Fri, Apr 13, 2018 at 6:34 PM, Gerhard Petracek < gerhard.petra...@gmail.com> wrote: > hi stephen, > > #1 you need to register your mock correctly (in your case with > NamedLiteral, since you are using @Named) > #2 dependent-s