features in parameterized tests.
This is mostly copy-paste from
since the methods could not be overridden.
methods will be executed
only once before and after all tests (since these should prepare static members).
will be executed before and after each set of tests with given parameters.
Class can override the parameters list (annotated by
by defining static method of the same name in inheriting class (this works although usually static
methods cannot override each other in Java).
When there are multiple methods providing the parameters list, the used parameters list is a cross product
of all the options, concatenating the argument list according to
, non-static parameters methods are allowed, but the test class needs
to have parameterless constructor, and therefore use
for setting these parameters. This allow type-safe overriding of the method; note that only the base
method needs the
annotation, overriding methods
are invoked automatically.