This is an automated email from the ASF dual-hosted git repository.

sunnianjun 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 9fde9c80ea8 Remove useless LocalFileTestParameterLoadStrategy (#28093)
9fde9c80ea8 is described below

commit 9fde9c80ea82014bf766ec828a88f051d7c90a1f
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Aug 15 15:50:02 2023 +0800

    Remove useless LocalFileTestParameterLoadStrategy (#28093)
---
 .../impl/LocalFileTestParameterLoadStrategy.java   | 46 ----------------------
 1 file changed, 46 deletions(-)

diff --git 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/loader/strategy/impl/LocalFileTestParameterLoadStrategy.java
 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/loader/strategy/impl/LocalFileTestParameterLoadStrategy.java
deleted file mode 100644
index e2d56e532f3..00000000000
--- 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/loader/strategy/impl/LocalFileTestParameterLoadStrategy.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.it.sql.parser.loader.strategy.impl;
-
-import lombok.SneakyThrows;
-import 
org.apache.shardingsphere.test.it.sql.parser.loader.strategy.TestParameterLoadStrategy;
-import org.apache.shardingsphere.test.it.sql.parser.loader.summary.FileSummary;
-
-import java.net.URI;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.stream.Stream;
-
-/**
- * Test parameter load strategy with local file.
- */
-public final class LocalFileTestParameterLoadStrategy implements 
TestParameterLoadStrategy {
-    
-    @SneakyThrows
-    @Override
-    public Collection<FileSummary> loadSQLCaseFileSummaries(final URI uri) {
-        final Collection<FileSummary> result = new LinkedList<>();
-        try (Stream<Path> stream = Files.walk(Paths.get(uri))) {
-            stream.filter(each -> 
each.toString().endsWith(".sql")).forEach(each -> result.add(new 
FileSummary(each.getFileName().toString(), each.toUri().toString())));
-        }
-        return result;
-    }
-}

Reply via email to