1 package org.junit.runners.parameterized; 2 3 import org.junit.runner.Runner; 4 import org.junit.runners.model.InitializationError; 5 6 /** 7 * A {@code ParametersRunnerFactory} creates a runner for a single 8 * {@link TestWithParameters}. 9 * 10 * @since 4.12 11 */ 12 public interface ParametersRunnerFactory { 13 /** 14 * Returns a runner for the specified {@link TestWithParameters}. 15 * 16 * @throws InitializationError 17 * if the runner could not be created. 18 */ createRunnerForTestWithParameters(TestWithParameters test)19 Runner createRunnerForTestWithParameters(TestWithParameters test) 20 throws InitializationError; 21 } 22