Interface CustomTestMethodInvoker
public interface CustomTestMethodInvoker
Implement this interface on test suites to provide custom logic for invoking
GameTest
test methods.-
Method Summary
Modifier and TypeMethodDescriptionvoid
invokeTestMethod
(TestContext context, Method method) Implement this method to provide custom logic used to invoke the test method.
-
Method Details
-
invokeTestMethod
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:
context
- The vanilla test contextmethod
- The test method to invoke- Throws:
ReflectiveOperationException
-