Interface CustomTestMethodInvoker


public interface CustomTestMethodInvoker
Implement this interface on test suites to provide custom logic for invoking GameTest test methods.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Implement this method to provide custom logic used to invoke the test method.
  • Method Details Link icon

    • invokeTestMethod Link icon

      void invokeTestMethod(TestContext context, 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:
      context - The vanilla test context
      method - The test method to invoke
      Throws:
      ReflectiveOperationException