Uses of Package
org.junit.jupiter.api
-
Packages that use org.junit.jupiter.api Package Description org.junit.jupiter.api JUnit Jupiter API for writing tests.org.junit.jupiter.api.extension JUnit Jupiter API for writing extensions.org.junit.jupiter.engine.config Configuration specific to the JUnit Jupiter test engine.org.junit.jupiter.engine.descriptor Test descriptors used within the JUnit Jupiter test engine.org.junit.jupiter.engine.discovery Internal classes for test discovery within the JUnit Jupiter test engine.org.junit.jupiter.engine.extension Test extensions specific to the JUnit Jupiter test engine.org.junit.jupiter.params JUnit Jupiter extension for parameterized tests. -
Classes in org.junit.jupiter.api used by org.junit.jupiter.api Class Description AssertionFailureBuilder Builder forAssertionFailedErrors
.Assertions.TimeoutFailureFactory Factory for timeout failures.AssertIterableEquals.Pair AssertIterableEquals.Status ClassDescriptor ClassDescriptor
encapsulates functionality for a givenClass
.ClassOrderer ClassOrderer
defines the API for ordering top-level test classes and@Nested
test classes.ClassOrdererContext ClassOrdererContext
encapsulates the context in which aClassOrderer
will be invoked.DisplayNameGeneration @DisplayNameGeneration
is used to declare a custom display name generator for the annotated test class.DisplayNameGenerator DisplayNameGenerator
defines the SPI for generating display names programmatically.DisplayNameGenerator.Simple SimpleDisplayNameGenerator
that removes trailing parentheses for methods with no parameters.DisplayNameGenerator.Standard StandardDisplayNameGenerator
.DynamicContainer ADynamicContainer
is a container generated at runtime.DynamicNode DynamicNode
serves as the abstract base class for a container or a test case generated at runtime.DynamicTest ADynamicTest
is a test case generated at runtime.IndicativeSentencesGeneration @IndicativeSentencesGeneration
is used to register theDisplayNameGenerator.IndicativeSentences
display name generator and configure it.MethodDescriptor MethodDescriptor
encapsulates functionality for a givenMethod
.MethodOrderer MethodOrderer
defines the API for ordering the test methods in a given test class.MethodOrderer.MethodName MethodOrderer
that sorts methods alphanumerically based on their names usingString.compareTo(String)
.MethodOrdererContext MethodOrdererContext
encapsulates the context in which aMethodOrderer
will be invoked.Named Named
is a container that associates a name with a given payload.Tag @Tag
is a repeatable annotation that is used to declare a tag for the annotated test class or test method.TestInstance.Lifecycle Enumeration of test instance lifecycle modes.TestTemplate @TestTemplate
is used to signal that the annotated method is a test template method.Timeout.ThreadMode ThreadMode
is use to define whether the test code should be executed in the thread of the calling code or in a separated thread. -
Classes in org.junit.jupiter.api used by org.junit.jupiter.api.extension Class Description TestInstance.Lifecycle Enumeration of test instance lifecycle modes. -
Classes in org.junit.jupiter.api used by org.junit.jupiter.engine.config Class Description ClassOrderer ClassOrderer
defines the API for ordering top-level test classes and@Nested
test classes.DisplayNameGenerator DisplayNameGenerator
defines the SPI for generating display names programmatically.MethodOrderer MethodOrderer
defines the API for ordering the test methods in a given test class.TestInstance.Lifecycle Enumeration of test instance lifecycle modes. -
Classes in org.junit.jupiter.api used by org.junit.jupiter.engine.descriptor Class Description DisplayNameGenerator DisplayNameGenerator
defines the SPI for generating display names programmatically.DynamicContainer ADynamicContainer
is a container generated at runtime.DynamicNode DynamicNode
serves as the abstract base class for a container or a test case generated at runtime.DynamicTest ADynamicTest
is a test case generated at runtime.TestInstance.Lifecycle Enumeration of test instance lifecycle modes. -
Classes in org.junit.jupiter.api used by org.junit.jupiter.engine.discovery Class Description ClassDescriptor ClassDescriptor
encapsulates functionality for a givenClass
.ClassOrderer ClassOrderer
defines the API for ordering top-level test classes and@Nested
test classes.ClassOrdererContext ClassOrdererContext
encapsulates the context in which aClassOrderer
will be invoked.MethodDescriptor MethodDescriptor
encapsulates functionality for a givenMethod
.MethodOrdererContext MethodOrdererContext
encapsulates the context in which aMethodOrderer
will be invoked. -
Classes in org.junit.jupiter.api used by org.junit.jupiter.engine.extension Class Description Disabled @Disabled
is used to signal that the annotated test class or test method is currently disabled and should not be executed.RepeatedTest @RepeatedTest
is used to signal that the annotated method is a test template method that should be repeated a specified number of times with a configurable display name and an optional failure threshold.RepetitionInfo RepetitionInfo
is used to inject information about the current repetition of a repeated test into@RepeatedTest
,@BeforeEach
, and@AfterEach
methods.TestInfo TestInfo
is used to inject information about the current test or container into to@Test
,@RepeatedTest
,@ParameterizedTest
,@TestFactory
,@BeforeEach
,@AfterEach
,@BeforeAll
, and@AfterAll
methods.TestReporter Parameters of typeTestReporter
can be injected into@BeforeEach
and@AfterEach
lifecycle methods as well as methods annotated with@Test
,@RepeatedTest
,@ParameterizedTest
,@TestFactory
, etc.Timeout @Timeout
is used to define a timeout for a method or all testable methods within one class and its@Nested
classes.Timeout.ThreadMode ThreadMode
is use to define whether the test code should be executed in the thread of the calling code or in a separated thread. -
Classes in org.junit.jupiter.api used by org.junit.jupiter.params Class Description TestTemplate @TestTemplate
is used to signal that the annotated method is a test template method.