Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Blog post about Data Management - JUnitCSVSourceTest code snippet
class JUnitCSVSourceTest {
private static final String MAXIMUM_PRICE = "30.0";
@CsvFileSource(resources = "/products.csv", numLinesToSkip = 1)
void productsLassThan(String product, BigDecimal amount) {
assertThat(amount).isLessThanOrEqualTo(new BigDecimal(MAXIMUM_PRICE));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.