A Theory JUnit test is a subset of the Parameterized JUnit test feature.
It is very similar in respects to driving tests with a set of test data, except with a few differences as explained below.
- The test class is annotated with
- The test does not require a constructor to assign values, which reduces the code length.
@DataPointsannotations are used to indicate that a public static variable as a source of test data.
@DataPointis a single test data value same as
@DataPointsis a set of test data (iterable object) same as