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, aSupplierof StructureTemplate or aStructureTemplateBuilderin order to automatically register that code-defined template.Annotate aStringfield with the value being the ID of a group with this annotation in order to configure the group.Annotation used byAbstractTestin order to collect information about a test.Annotate the class of anAbstractTestor a method-based test with this annotation in order to add test listeners to the test.