批注接口 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.
-
可选元素概要
可选元素修饰符和类型可选元素说明String[]
返回 the groups in which child tests will be, by default。返回 a prefix to apply to the child tests。Class<? extends TestListener>[]
返回 the listeners to add to all child tests。net.neoforged.api.distmarker.Dist[]
返回 the sides the child tests are loaded on。 -
字段概要
字段
-
字段详细资料
-
DEFAULT
-
-
元素详细资料
-
idPrefix
String idPrefix返回 a prefix to apply to the child tests。- 返回:
- a prefix to apply to the child tests
- 默认值:
""
-
groups
String[] groups返回 the groups in which child tests will be, by default。- 返回:
- the groups in which child tests will be, by default
- 默认值:
{}
-
listeners
Class<? extends TestListener>[] listeners返回 the listeners to add to all child tests。- 返回:
- the listeners to add to all child tests
- 默认值:
{}
-
side
net.neoforged.api.distmarker.Dist[] side返回 the sides the child tests are loaded on。- 返回:
- the sides the child tests are loaded on
- 默认值:
{}
-