Class MethodBasedTest
java.lang.Object
net.neoforged.testframework.impl.test.AbstractTest
net.neoforged.testframework.impl.test.AbstractTest.Dynamic
net.neoforged.testframework.impl.test.MethodBasedTest
- All Implemented Interfaces:
DynamicTest
,Groupable
,Test
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.testframework.impl.test.AbstractTest
AbstractTest.AnnotationHolder, AbstractTest.Dynamic
Nested classes/interfaces inherited from interface net.neoforged.testframework.DynamicTest
DynamicTest.EnabledListener
Nested classes/interfaces inherited from interface net.neoforged.testframework.Test
Test.EventListenerGroup, Test.Result, Test.Status, Test.Visuals
-
Field Summary
Fields inherited from class net.neoforged.testframework.impl.test.AbstractTest
enabledByDefault, framework, gameTestData, groups, id, listeners, visuals
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(TestFramework framework) This method is called when the test is registered to aTestFramework
.Methods inherited from class net.neoforged.testframework.impl.test.AbstractTest.Dynamic
createModId, eventListeners, fail, framework, gameTestTemplate, isDuringGameTest, onDisabled, onEnabled, onGameTest, onGameTest, onGameTest, pass, registrationHelper, registrationHelper, whenDisabled, whenEnabled
Methods inherited from class net.neoforged.testframework.impl.test.AbstractTest
asGameTest, configureFrom, configureGameTest, enable, enabledByDefault, groups, id, isEnabled, listeners, logger, requestConfirmation, status, updateStatus, visuals
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.testframework.DynamicTest
registerGameTestTemplate, registerGameTestTemplate, requestConfirmation, status, updateStatus
Methods inherited from interface net.neoforged.testframework.Test
asGameTest, enabledByDefault, groups, id, listeners, resolveAll, resolveAsStream, visuals
-
Field Details
-
handle
-
method
-
-
Constructor Details
-
MethodBasedTest
-
-
Method Details
-
init
Description copied from interface:Test
This method is called when the test is registered to aTestFramework
.- Specified by:
init
in interfaceTest
- Overrides:
init
in classAbstractTest
- Parameters:
framework
- the framework the test has been registered to
-