Module org.junitpioneer
Package org.junitpioneer.jupiter.params
Annotation Type DisableIfDisplayName
-
@Target(METHOD) @Retention(RUNTIME) @ExtendWith(DisableIfNameExtension.class) public @interface DisableIfDisplayName
@DisableIfDisplayNameis a JUnit Jupiter extension that can be used to selectively disable aParameterizedTestexecution based on theirdisplay name.The extension is an
ExecutionConditionthat validates dynamically registered tests. UnlikeDisabledannotations, this extension doesn't disable the whole test method. WithDisableIfDisplayName, it is possible to selectively disable tests out of the plethora of dynamically registered parameterized tests.If neither
containsnormatchesis configured, or if both are present, the extension will throw an exception.- Since:
- 0.7
- See Also:
DisableIfNameExtension
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]containsDisable test cases whose display name contain the specified strings (according toString.contains(CharSequence)).java.lang.String[]matchesDisable test cases whose display name matches the specified regular expression (according toString.matches(java.lang.String)).
-