Package net.neoforged.testframework.annotation
@ParametersAreNonnullByDefault
package net.neoforged.testframework.annotation
-
ClassDescriptionApply this annotation to a class in order to add a common configuration to all child tests.Annotate a static method accepting exactly one parameter of MutableTestFramework (or parent interfaces) to register that method as an on-init listener, which will be called in
MutableTestFramework.init(IEventBus, ModContainer)
.Put this annotation on a static field containing either aStructureTemplate
, aSupplier
of StructureTemplate or aStructureTemplateBuilder
in order to automatically register that code-defined template.Annotate aString
field with the value being the ID of a group with this annotation in order to configure the group.Annotation used byAbstractTest
in order to collect information about a test.Annotate the class of anAbstractTest
or a method-based test with this annotation in order to add test listeners to the test.