diff --git a/test/integration-test/test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/runner/parallel/ParameterizedParallelRunnerScheduler.java b/test/integration-test/test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/runner/parallel/ParameterizedParallelRunnerScheduler.java index 701550f0aa005..b2be69368c822 100644 --- a/test/integration-test/test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/runner/parallel/ParameterizedParallelRunnerScheduler.java +++ b/test/integration-test/test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/runner/parallel/ParameterizedParallelRunnerScheduler.java @@ -18,7 +18,7 @@ package org.apache.shardingsphere.test.integration.framework.runner.parallel; import org.apache.shardingsphere.infra.database.type.DatabaseType; -import org.apache.shardingsphere.test.integration.framework.param.RunnerParameters; +import org.apache.shardingsphere.test.runner.param.RunnerParameters; import org.apache.shardingsphere.test.integration.framework.param.model.ITParameterizedArray; import org.apache.shardingsphere.test.runner.ParallelRunningStrategy.ParallelLevel; import org.apache.shardingsphere.test.runner.executor.ParallelRunnerExecutorFactory; @@ -35,7 +35,7 @@ public ParameterizedParallelRunnerScheduler(final ParallelLevel parallelLevel, f @Override public void schedule(final Runnable childStatement) { - ITParameterizedArray parameterizedArray = new RunnerParameters(childStatement).getParameterizedArray(); + ITParameterizedArray parameterizedArray = (ITParameterizedArray) new RunnerParameters(childStatement).getParameterizedArray(); getExecutorFactory().getExecutor(parameterizedArray.getDatabaseType(), getParallelLevel()).execute(parameterizedArray, childStatement); } } diff --git a/test/integration-test/test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/param/RunnerParameters.java b/test/runner/src/main/java/org/apache/shardingsphere/test/runner/param/RunnerParameters.java similarity index 86% rename from test/integration-test/test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/param/RunnerParameters.java rename to test/runner/src/main/java/org/apache/shardingsphere/test/runner/param/RunnerParameters.java index c1a4b682c469e..40b727cd2e333 100644 --- a/test/integration-test/test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/param/RunnerParameters.java +++ b/test/runner/src/main/java/org/apache/shardingsphere/test/runner/param/RunnerParameters.java @@ -15,11 +15,10 @@ * limitations under the License. */ -package org.apache.shardingsphere.test.integration.framework.param; +package org.apache.shardingsphere.test.runner.param; import lombok.RequiredArgsConstructor; import lombok.SneakyThrows; -import org.apache.shardingsphere.test.integration.framework.param.model.ITParameterizedArray; import org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters; import java.lang.reflect.Field; @@ -38,11 +37,11 @@ public final class RunnerParameters { * @return parameterized array */ @SneakyThrows(ReflectiveOperationException.class) - public ITParameterizedArray getParameterizedArray() { + public ParameterizedArray getParameterizedArray() { Field parametersField = BlockJUnit4ClassRunnerWithParameters.class.getDeclaredField("parameters"); parametersField.setAccessible(true); Object[] params = (Object[]) parametersField.get(getRunner()); - return (ITParameterizedArray) params[0]; + return (ParameterizedArray) params[0]; } @SneakyThrows(ReflectiveOperationException.class)