Danny Preussler – Medium
Photo by CDC on Unsplash Parameterized tests are a very powerful feature. Those are tests that are taking method parameters. This is very useful if we need multiple runs of the same test but with different input arguments. JUnit5 has built-in support (similar can be achieved on JUnit4 and a specific Runner). The API provides various ways to supply the method parameters like a list of strings or the values of an enum. Letâs look at the enum version. Letâs also assume that we have some code that allows various ways to log-in and those are summed up in this enum:
Source: medium.com