So I started writing tests for our Java-Spring-project.
What I use is JUnit and Mockito. It\'s said, that when I use the when()...thenReturn() option I can mock ser
When using JUnit 5 or above. You have to inject the class annotated with @Mock in an @BeforeEach setup.
@Mock
@BeforeEach