Introduction to Testing in Java
Maria Milusheva
Senior Software Engineer
@Test
assertEquals()
assertTrue()
, assertInstanceOf()
, assertNull()
mock()
, when()
, .thenReturn()
verify()
to track mock interactions@ParameterizedTest
to shorten test classes and reduce repetition@ValueSource
and @CsvSource
@MethodSource
and Arguments.of()
@BeforeEach
annotationIntroduction to Testing in Java