Annotation Interface ForEachTest
Apply this annotation to a class in order to add a common configuration to all child tests.
This is primarily useful for method-based tests.
Note: the common configuration goes only one level deep.
This is primarily useful for method-based tests.
Note: the common configuration goes only one level deep.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Returns the groups in which child tests will be, by default.Returns a prefix to apply to the child tests.Class<? extends TestListener>[]
Returns the listeners to add to all child tests.net.neoforged.api.distmarker.Dist[]
Returns the sides the child tests are loaded on. -
Field Summary
-
Field Details
-
DEFAULT
-
-
Element Details
-
idPrefix
String idPrefixReturns a prefix to apply to the child tests.- Returns:
- a prefix to apply to the child tests
- Default:
- ""
-
groups
String[] groupsReturns the groups in which child tests will be, by default.- Returns:
- the groups in which child tests will be, by default
- Default:
- {}
-
listeners
Class<? extends TestListener>[] listenersReturns the listeners to add to all child tests.- Returns:
- the listeners to add to all child tests
- Default:
- {}
-
side
net.neoforged.api.distmarker.Dist[] sideReturns the sides the child tests are loaded on.- Returns:
- the sides the child tests are loaded on
- Default:
- {}
-