This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 5994abb Refactor ParameterizedArrayFactory (#15446)
5994abb is described below
commit 5994abb4a74d97b1c1e351802875dfd8688d7d67
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Feb 16 18:32:11 2022 +0800
Refactor ParameterizedArrayFactory (#15446)
---
.../test/integration/framework/param/ParameterizedArrayFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/param/ParameterizedArrayFactory.java
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/param/ParameterizedArrayFactory.java
index 4b2a80a..0aceec3 100644
---
a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/param/ParameterizedArrayFactory.java
+++
b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/framework/param/ParameterizedArrayFactory.java
@@ -69,7 +69,7 @@ public final class ParameterizedArrayFactory {
private static Collection<AssertionParameterizedArray>
getAssertionParameterizedArray(final IntegrationTestCaseContext
testCaseContext, final SQLCommandType sqlCommandType) {
Collection<AssertionParameterizedArray> result = new LinkedList<>();
for (DatabaseType each :
getDatabaseTypes(testCaseContext.getTestCase().getDbTypes())) {
- if
(IntegrationTestEnvironment.getInstance().getDatabaseTypes().contains(each)) {
+ if (ENV.getDatabaseTypes().contains(each)) {
result.addAll(getAssertionParameterizedArray(testCaseContext,
each, sqlCommandType));
}
}
@@ -140,7 +140,7 @@ public final class ParameterizedArrayFactory {
private static Collection<ParameterizedArray>
getCaseParameterizedArray(final IntegrationTestCaseContext testCaseContext,
final SQLCommandType sqlCommandType) {
Collection<ParameterizedArray> result = new LinkedList<>();
for (DatabaseType each :
getDatabaseTypes(testCaseContext.getTestCase().getDbTypes())) {
- if
(IntegrationTestEnvironment.getInstance().getDatabaseTypes().contains(each)) {
+ if (ENV.getDatabaseTypes().contains(each)) {
result.addAll(getCaseParameterizedArray(testCaseContext, each,
sqlCommandType));
}
}