e. Or find another way to do the @Spy stuff with maybe the mockit
java api to set it up yourself.
> HTH,
> Christian
>
> -Ursprüngliche Nachricht-
> Von: Damien Nicolas [mailto:dmn.nico...@gmail.com]
> Gesendet: Montag, 5. November 2018 14:47
> An: users@camel.apac
u'd
> try it with the annotation @RunWith(MockitoJUnitRunner.class) at your class.
>
> HTH,
> Christian
>
> -Ursprüngliche Nachricht-
> Von: Damien Nicolas [mailto:dmn.nico...@gmail.com]
> Gesendet: Montag, 5. November 2018 14:47
> An: users@camel.apache.org
> Betreff:
2018 14:47
An: users@camel.apache.org
Betreff: test unit a processor with an embedded autowired bean
Hello,
I would like to unit test a processor containing a service as an autowired
bean (*messageInformationService*). I would like to mock this bean to make
it return the data I want, but when I do
Hi
I think maybe you need to use the mockito mocked instance here instead
of creating a new instance yourself
context.bind("messageInformationService", new
MessageInformationServiceImpl());
On Mon, Nov 5, 2018 at 2:47 PM Damien Nicolas wrote:
>
> Hello,
>
> I would like to unit test a
Hello,
I would like to unit test a processor containing a service as an autowired
bean (*messageInformationService*). I would like to mock this bean to make
it return the data I want, but when I do that with Mockito, my service is
null.
*Here is my test class:*
public class