Annotation Type CartesianProductTest


@TestTemplate @ExtendWith(org.junitpioneer.jupiter.CartesianProductTestExtension.class) @Target(METHOD) @Retention(RUNTIME) @Deprecated public @interface CartesianProductTest
Deprecated.
has been superseded by CartesianTest, scheduled to be removed in 2.0
@CartesianProductTest is a JUnit Jupiter extension that marks a test to be executed with all possible input combinations.

Methods annotated with this annotation should not be annotated with Test.

This annotation is somewhat similar to @ParameterizedTest, as in it also takes arguments and can run the same test multiple times. With @CartesianProductTest you don't specify the test cases themselves. though. Instead you specify possible values for each test method parameter (see @CartesianValueSource) and the extension runs the method with each possible combination.

You can specify a custom Display Name for the tests ran by @CartesianProductTest. By default it's [{index}] {arguments}.

For more details and examples, see the documentation on @CartesianProductTest.

Since:
1.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated.
    CartesianProductTest has been superseded by CartesianTest, scheduled to be removed in 2.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated.
    Specifies the name of the method that supplies the Sets for the test.
    Deprecated.
    The display name to be used for individual invocations of the parameterized test; never blank or consisting solely of whitespace.
    Deprecated.
    Specifies String values for all inputs simultaneously.