In the earlier recipes, we used CSV and Excel spreadsheets to maintain the test data and read this test data in JUnit.
The test data can also be read from a database. This works similar to the previous recipes, however, we will create a helper method using JDBC to read the test data from a Microsoft Access database. This recipe can be used with any database.
Let's implement a parameterized test with CSV by using the following steps: