Adavance Testing methods based on SB app
-
Review tests written on Spring lessons 0.1 - unit tests 0.2 - integration tests 0.3 - component tests 0.4 - mockMvc tests
-
Theory: https://java.pl.sdacademy.pro/prezentacje/testowanie_oprogramowania_zaawansowane/
-
Junit 5 - params
-
junit-jupiter-params
-
@ParameterizedTest
-
@CsvSource
-
@CsvFileSource
-
@ValueSource
-
Testing exceptions
-
assertThrows
-
tryCatch & fail
-
expected error
-
PowerMock < EasyMock, Mockito (mocking constructors, final/static methods)
-
Example with Junit 4
-
Mockito
-
ArgumentCapture
-
Stub
-
Spy
-
Mock
-
Docker (extra)
-
Testcontainers (extra)
-
Cucumber tests
-
BDD scenario (feature file)