TestRuntimeAwareMixin (Grails 3.1.1)
Date: 2016-02-04

Package: grails.test.mixin

## [Java] Interface TestRuntimeAwareMixin

- Interface for marking the mixin class aware of TestRuntime

  Authors:
    Lari Hotari
  Since:
    2.4.0

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.util.Set<java.lang.String>` | `getFeatures()` @return list of features that are required by the test mixin
    `void` | `setRuntime(TestRuntime runtime)` TestRuntime will set it's instance to the mixin class by calling this method
    `void` | `setTestClass(java.lang.Class<?> testClass)` TestRuntime will set the target test class to the mixin class instance by calling this method

- - ### Method Detail

    - #### public java.util.Set<java.lang.String> getFeatures()

      Returns:
        list of features that are required by the test mixin

    - #### public void setRuntime(TestRuntime runtime)

      TestRuntime will set it's instance to the mixin class by calling this method

      Parameters:
        runtime

    - #### public void setTestClass(java.lang.Class<?> testClass)

      TestRuntime will set the target test class to the mixin class instance by calling this method mixins are instantiated in static context in order to support JUnit

      ClassRule:
        annotations the instance of the test class is not active when this method is called.
      Parameters:
        testClass