Module org.junitpioneer
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:
-
Interface Summary Interface Description IssueProcessor This interfaces offers a method to process the results of `@Issue` annotated test cases. -
Class Summary Class Description AbstractEntryBasedExtension<K,V,C extends java.lang.annotation.Annotation,S extends java.lang.annotation.Annotation,R extends java.lang.annotation.Annotation> An abstract base class for entry-based extensions, where entries (key-value pairs) can be cleared, set, or restored.DefaultLocaleExtension DefaultTimeZoneExtension DisabledUntilExtension This class implements the functionality for the@DisabledUntilannotation.DisableIfTestFailsExtension DisableIfTestFailsExtension.Configuration EnvironmentVariableExtension EnvironmentVariableUtils This class modifies the internals of the environment variables map with reflection.ExpectedToFailExtension FailAtExtension This class implements the functionality for the@FailAtannotation.IssueExtension This class implements the functionality for the@Issueannotation.IssueTestCase Represents the execution result of test method, which is annotated withIssue.IssueTestSuite Represents the execution result of test method, which is annotated withIssue.ReportEntryExtension RetryingTestExtension RetryingTestExtension.FailedTestRetrier RetryingTestInvocationContext StdErr For details and examples, see the documentation on standard input/output.StdIn For details and examples, see the documentation on standard input/output.StdIoExtension StdOut For details and examples, see the documentation on standard input/output.StdOutputStream StopwatchExtension The StopwatchExtension implements callback methods for the@Stopwatchannotation.SystemPropertyExtension -
Enum Summary Enum Description ReportEntry.PublishCondition The available values you can choose from to define for which test outcomes the extension should publish the report entry. -
Annotation Types Summary Annotation Type Description ClearEnvironmentVariable @ClearEnvironmentVariableis a JUnit Jupiter extension to clear the value of an environment variable for a test execution.ClearEnvironmentVariable.ClearEnvironmentVariables Containing annotation of repeatable@ClearEnvironmentVariable.ClearSystemProperty @ClearSystemPropertyis a JUnit Jupiter extension to clear the value of a system property for a test execution.ClearSystemProperty.ClearSystemProperties Containing annotation of repeatable@ClearSystemProperty.DefaultLocale @DefaultLocaleis a JUnit Jupiter extension to change the value returned byLocale.getDefault()for a test execution.DefaultTimeZone @DefaultTimeZoneis a JUnit Jupiter extension to change the value returned byTimeZone.getDefault()for a test execution.DisabledUntil @DisabledUntilis a JUnit Jupiter extension to mark tests that shouldn't be executed until a given date, essentially disabling a test temporarily.DisableIfTestFails Disables all remaining tests in a container if one of them failed.ExpectedToFail @ExpectedToFailis a JUnit Jupiter extension to mark test methods as temporarily 'expected to fail'.FailAt @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.Issue @Issueis a JUnit Jupiter extension to mark tests that exist to cover an issue, like a requirement or a bugfix.ReadsDefaultLocale Marks tests that read the default locale but don't use the locale extension themselves.ReadsDefaultTimeZone Marks tests that read the default time zone but don't use the time zone extension themselves.ReadsEnvironmentVariable Marks tests that read environment variables but don't use the environment variable extension themselves.ReadsStdIo Marks tests that read the static fieldsSystem.in,System.outorSystem.errbut don't callSystem.setIn(),System.setOut()orSystem.setErr().ReadsSystemProperty Marks tests that read system properties but don't use the system property extension themselves.ReportEntry Publish the specified key-value pair to be consumed by anorg.junit.platform.engine.EngineExecutionListenerin order to supply additional information to the reporting infrastructure.ReportEntry.ReportEntries Containing annotation of repeatableReportEntry.RestoreEnvironmentVariables @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.RestoreSystemProperties @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.RetryingTest @RetryingTestis a JUnit Jupiter extension that retries a failing test a certain number of times before the test actually shows up as failing.SetEnvironmentVariable @SetEnvironmentVariableis a JUnit Jupiter extension to set the value of an environment variable for a test execution.SetEnvironmentVariable.SetEnvironmentVariables Containing annotation of repeatable@SetEnvironmentVariable.SetSystemProperty @SetSystemPropertyis a JUnit Jupiter extension to set the value of a system property for a test execution.SetSystemProperty.SetSystemProperties Containing annotation of repeatable@SetSystemProperty.StdIo Stopwatch @Stopwatchis a JUnit Jupiter extension to measure the elapsed time of a test execution.WritesDefaultLocale Marks tests that write the default locale but don't use the locale extension themselves.WritesDefaultTimeZone Marks tests that write the default time zone but don't use the time zone extension themselves.WritesEnvironmentVariable Marks tests that write environment variables but don't use the environment variable extension themselves.WritesStdIo Marks tests that callSystem.setIn(),System.setOut()orSystem.setErr()to set the static fieldsSystem.in/System.out/System.err.WritesSystemProperty Marks tests that write system properties but don't use the system property extension themselves.