Class RobolectricTestParameterInjector

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

public final class RobolectricTestParameterInjector extends RobolectricTestRunner
A RobolectricTestRunner that supports TestParameterInjector parameter injection.

This runner provides several benefits over the ParameterizedRobolectricTestRunner, in particular:

  • It provides convenient syntax for supporting field parameter injection.
  • It allows parameterizing individual test methods using TestParameter.
  • It provides easy to use declarative syntax for parameter combinations using TestParameters.

See https://github.com/google/TestParameterInjector for more details.

  • Constructor Details

    • RobolectricTestParameterInjector

      public RobolectricTestParameterInjector(Class<?> testClass) throws org.junit.runners.model.InitializationError
      Throws:
      org.junit.runners.model.InitializationError
  • Method Details