Slide 25
Slide 25 text
Data Driven
It is one of the Static data generation types.
It consists of using different data in the same test, where the
data changes, not the test.
Different test libraries have this approach available.
Most of them consist of the data hard-coded in a test class.
More info about JUnit 5 data driven methods at:
https://junit.org/junit5/docs/current/user-guide/#writing-tests-parameterized-tests
@Override
public Stream extends Arguments> provideArguments(ExtensionContext extensionContext) {
return Stream.of(
arguments("Micro SD Card 16Gb", new BigDecimal("6.09")),
arguments("JBL GO 2", new BigDecimal("22.37")),
arguments("iPad Air Case", new BigDecimal("14.99"))
);
}