Interface CustomTestMethodInvoker
public interface CustomTestMethodInvoker
Implement this interface on test suites to provide custom logic for invoking
GameTest test methods.-
Method Summary
Modifier and TypeMethodDescriptionvoidinvokeTestMethod(net.minecraft.gametest.framework.GameTestHelper helper, Method method) Implement this method to provide custom logic used to invoke the test method.
-
Method Details
-
invokeTestMethod
void invokeTestMethod(net.minecraft.gametest.framework.GameTestHelper helper, Method method) throws ReflectiveOperationException Implement this method to provide custom logic used to invoke the test method. This can be used to run code before or after each test. You can also pass in custom parameters into the test method if desired. The structure will have been placed in the world before this method is invoked.- Parameters:
helper- The vanilla test contextmethod- The test method to invoke- Throws:
ReflectiveOperationException
-