JUnit test with dynamic number of tests
Take a look at Parameterized Tests in JUnit 4. Actually I did this a few days ago. I’ll try to explain … First build your test class normally, as you where just testing with one input file. Decorate your class with: @RunWith(Parameterized.class) Build one constructor that takes the input that will change in every test … Read more