Annotation Interface TestHolder
Annotation used by
AbstractTest
in order to collect information about a test.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
This usually contains instructions on how to use the test.boolean
Returns if this test is enabled by default.String[]
Returns the groups the test is in.net.neoforged.api.distmarker.Dist[]
Returns the sides this test should be registered on.Returns the human-readable title of the test.Returns the test's ID.
-
Element Details
-
value
String valueReturns the test's ID.- Returns:
- the test's ID
- Default:
"compute"
-
groups
String[] groupsReturns the groups the test is in.
Note: if empty, it defaults toungrouped
.- Returns:
- the groups the test is in
- See Also:
- Default:
{}
-
title
String titleReturns the human-readable title of the test.- Returns:
- the human-readable title of the test
- Default:
""
-
description
String[] descriptionThis usually contains instructions on how to use the test. Returns the human-readable description of the test.- Default:
{}
-
enabledByDefault
boolean enabledByDefaultReturns if this test is enabled by default.- Returns:
- if this test is enabled by default
- Default:
false
-
side
net.neoforged.api.distmarker.Dist[] sideReturns the sides this test should be registered on.- Returns:
- the sides this test should be registered on
- Default:
{CLIENT, DEDICATED_SERVER}
-