Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. The class under test should be marked with @InjectMocks even if now @Mock no @Mock fields are going to be injected. This is because before every test method execution, this field will be reset.
  2. The inner class has to extend the outer test class. This is needed to access the in this example the cache field.