Package org.junitpioneer.jupiter
package org.junitpioneer.jupiter
Extensions to the JUnit Jupiter engine.
Check out the following types for details:
ClearEnvironmentVariable,SetEnvironmentVariable, andRestoreEnvironmentVariablesClearSystemProperty,SetSystemProperty, andRestoreSystemPropertiesDefaultLocaleandDefaultTimeZoneDisabledUntilDisableIfTestFailsExpectedToFailFailAtReportEntryRetryingTestStdIoStopwatch
Also check the following packages:
-
ClassDescriptionAn abstract base class for entry-based extensions, where entries (key-value pairs) can be cleared, set, or restored.
@ClearEnvironmentVariableis a JUnit Jupiter extension to clear the value of an environment variable for a test execution.Containing annotation of repeatable@ClearEnvironmentVariable.@ClearSystemPropertyis a JUnit Jupiter extension to clear the value of a system property for a test execution.Containing annotation of repeatable@ClearSystemProperty.@DefaultLocaleis a JUnit Jupiter extension to change the value returned byLocale.getDefault()for a test execution.@DefaultTimeZoneis a JUnit Jupiter extension to change the value returned byTimeZone.getDefault()for a test execution.@DisabledUntilis a JUnit Jupiter extension to mark tests that shouldn't be executed until a given date, essentially disabling a test temporarily.This class implements the functionality for the@DisabledUntilannotation.Disables all remaining tests in a container if one of them failed.This class modifies the internals of the environment variables map with reflection.@ExpectedToFailis a JUnit Jupiter extension to mark test methods as temporarily 'expected to fail'.@FailAtis a JUnit Jupiter extension to mark tests that shouldn't be executed after a given date, essentially failing a test when the date is reached.This class implements the functionality for the@FailAtannotation.@Issueis a JUnit Jupiter extension to mark tests that exist to cover an issue, like a requirement or a bugfix.This class implements the functionality for the@Issueannotation.This interfaces offers a method to process the results of `@Issue` annotated test cases.Represents the execution result of test method, which is annotated withIssue.Represents the execution result of test method, which is annotated withIssue.Marks tests that read the default locale but don't use the locale extension themselves.Marks tests that read the default time zone but don't use the time zone extension themselves.Marks tests that read environment variables but don't use the environment variable extension themselves.Marks tests that read the static fieldsSystem.in,System.outorSystem.errbut don't callSystem.setIn(),System.setOut()orSystem.setErr().Marks tests that read system properties but don't use the system property extension themselves.Publish the specified key-value pair to be consumed by anorg.junit.platform.engine.EngineExecutionListenerin order to supply additional information to the reporting infrastructure.The available values you can choose from to define for which test outcomes the extension should publish the report entry.Containing annotation of repeatableReportEntry.@RestoreEnvironmentVariablesis a JUnit Jupiter extension to restore the entire set of environment variables to the original value, or the value of the higher-level container, after the annotated element has been executed.@RestoreSystemPropertiesis a JUnit Jupiter extension to restore the entire set of system properties to the original value, or the value of the higher-level container, after the annotated element is complete.@RetryingTestis a JUnit Jupiter extension that retries a failing test a certain number of times before the test actually shows up as failing.@SetEnvironmentVariableis a JUnit Jupiter extension to set the value of an environment variable for a test execution.Containing annotation of repeatable@SetEnvironmentVariable.@SetSystemPropertyis a JUnit Jupiter extension to set the value of a system property for a test execution.Containing annotation of repeatable@SetSystemProperty.For details and examples, see the documentation on standard input/output.For details and examples, see the documentation on standard input/output.For details and examples, see the documentation on standard input/output.@Stopwatchis a JUnit Jupiter extension to measure the elapsed time of a test execution.The StopwatchExtension implements callback methods for the@Stopwatchannotation.Marks tests that write the default locale but don't use the locale extension themselves.Marks tests that write the default time zone but don't use the time zone extension themselves.Marks tests that write environment variables but don't use the environment variable extension themselves.Marks tests that callSystem.setIn(),System.setOut()orSystem.setErr()to set the static fieldsSystem.in/System.out/System.err.Marks tests that write system properties but don't use the system property extension themselves.