Class AbstractTest
java.lang.Object
net.neoforged.testframework.impl.test.AbstractTest
- Direct Known Subclasses:
- AbstractTest.Dynamic
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static interfacestatic classNested classes/interfaces inherited from interface net.neoforged.testframework.TestTest.EventListenerGroup, Test.Result, Test.Status, Test.Visuals
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected TestFrameworkprotected @Nullable GameTestDataprotected Stringprotected final Set<TestListener>protected Test.Visuals
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@Nullable GameTestDataReturns the game test version of this test.protected final voidprotected final voidconfigureGameTest(@Nullable GameTest gameTest, @Nullable EmptyTemplate template) voidenable()booleanReturns if this test is enabled by default.protected voidprotected StringgameTestTemplate(GameTest gameTest) groups()A list of the groups of this test.id()Returns the ID of this test.voidinit(TestFramework framework) This method is called when the test is registered to aTestFramework.booleanReturns the listeners of this test.org.slf4j.Loggerlogger()voidThis method is called when this test is disabled.voidonEnabled(Test.EventListenerGroup buses) This method is called when this test is enabled.protected voidonGameTest(GameTestHelper helper) protected voidpass()final voidrequestConfirmation(Player player, Component message) status()voidupdateStatus(Test.Status status, @Nullable Entity changer) visuals()Returns the visual information about the test.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.testframework.TestresolveAll, resolveAsStream
- 
Field Details- 
framework
- 
id
- 
groups
- 
enabledByDefaultprotected boolean enabledByDefault
- 
visuals
- 
gameTestData
- 
listeners
 
- 
- 
Constructor Details- 
AbstractTestprotected AbstractTest()
 
- 
- 
Method Details- 
configureFrom
- 
configureGameTestprotected final void configureGameTest(@Nullable @Nullable GameTest gameTest, @Nullable @Nullable EmptyTemplate template) 
- 
gameTestTemplate
- 
initDescription copied from interface:TestThis method is called when the test is registered to aTestFramework.
- 
onDisabledpublic void onDisabled()Description copied from interface:TestThis method is called when this test is disabled.- Specified by:
- onDisabledin interface- Test
 
- 
onEnabledDescription copied from interface:TestThis method is called when this test is enabled.
- 
onGameTest
- 
idDescription copied from interface:TestReturns the ID of this test.
- 
enabledByDefaultpublic boolean enabledByDefault()Description copied from interface:TestReturns if this test is enabled by default.- Specified by:
- enabledByDefaultin interface- Test
- Returns:
- if this test is enabled by default
 
- 
visualsDescription copied from interface:TestReturns the visual information about the test.
- 
asGameTestDescription copied from interface:TestReturns the game test version of this test.- Specified by:
- asGameTestin interface- Test
- Returns:
- the game test version of this test
 
- 
listenersDescription copied from interface:TestReturns the listeners of this test.
- 
groupsDescription copied from interface:TestA list of the groups of this test.
 If this list is empty, the test will be only in theungroupedgroup.
- 
isEnabledpublic boolean isEnabled()
- 
enablepublic void enable()
- 
loggerpublic org.slf4j.Logger logger()
- 
status
- 
updateStatus
- 
fail
- 
passprotected void pass()
- 
requestConfirmation
 
-