Issues with mockito-inline -4.0.0

58 views
Skip to first unread message

NeewBeWithInLine

unread,
Oct 9, 2021, 12:35:38 PM10/9/21
to mockito
Hi, just starting using the in line version and may be I am missing something.

If I have something like this

@MockitoSettings
class mytestes {
   @ Test
   void testSomething(
          @Mock final FactoryA factoryA,
          @ Mock final FactoryB factoryB)

If FactoryA is an interface it mocks, 
If FactoryB is a class it does not mock, just creates and instance of the class (plain old class NOT static or final) or fields are null.

With the core version it would mock both.  Is there something different I have to do?
mike

rogerdpack

unread,
Jan 10, 2022, 12:46:37 PM1/10/22
to mockito
Maybe ask on stackoverflow?
Reply all
Reply to author
Forward
0 new messages