You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2021/08/17 06:08:08 UTC

[incubator-shenyu] branch master updated: refactor integration test (#1940)

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

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new a3d9e8b  refactor integration test (#1940)
a3d9e8b is described below

commit a3d9e8bb0c8cdb82dcde6af60e8ec597497b7537
Author: xiaoyu <xi...@apache.org>
AuthorDate: Tue Aug 17 14:07:30 2021 +0800

    refactor integration test (#1940)
---
 .../shenyu/integratedtest/common/AbstractTest.java |  7 +++-
 .../integratedtest/common/helper/HttpHelper.java   | 38 ++++++++++++++--------
 .../shenyu-integrated-test-http/pom.xml            |  6 ++--
 .../test/http/HttpIntegratedBootstrap.java}        | 11 ++++---
 .../test/http/DividePluginTest.java}               |  4 +--
 .../test/http/combination/JwtPluginTest.java}      |  4 +--
 .../http/combination/RateLimiterPluginTest.java}   |  4 +--
 .../test/http/combination/RedirectPluginTest.java} |  4 +--
 .../test/http/combination/SignPluginTest.java}     |  4 +--
 .../test/http/combination/WafPluginTest.java}      |  4 +--
 .../apache/shenyu/integratedtest/http/AppTest.java | 36 --------------------
 .../shenyu/integratedtest/http/package-info.java   | 21 ------------
 .../shenyu-integrated-test-spring-cloud/pom.xml    |  5 ++-
 ...on.java => SpringCloudIntegratedBootstrap.java} |  7 ++--
 ...loWorldTest.java => SpringCloudPluginTest.java} |  3 +-
 15 files changed, 58 insertions(+), 100 deletions(-)

diff --git a/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/AbstractTest.java b/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/AbstractTest.java
index 44dc392..a6abb18 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/AbstractTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/AbstractTest.java
@@ -27,7 +27,12 @@ import java.util.concurrent.Executors;
 public class AbstractTest {
 
     private static final ExecutorService SERVICE = Executors.newCachedThreadPool();
-
+    
+    /**
+     * Gets service.
+     *
+     * @return the service
+     */
     protected ExecutorService getService() {
         return SERVICE;
     }
diff --git a/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/helper/HttpHelper.java b/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/helper/HttpHelper.java
index 809f15e..ca59a02 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/helper/HttpHelper.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-common/src/main/java/org/apache/shenyu/integratedtest/common/helper/HttpHelper.java
@@ -31,12 +31,24 @@ import java.io.IOException;
 import java.lang.reflect.Type;
 import java.util.Map;
 
+/**
+ * The type Http helper.
+ */
 public class HttpHelper {
-
+    
+    /**
+     * The constant INSTANCE.
+     */
     public static final HttpHelper INSTANCE = new HttpHelper();
-
+    
+    /**
+     * The constant GATEWAY_END_POINT.
+     */
     public static final String GATEWAY_END_POINT = "http://localhost:9195";
-
+    
+    /**
+     * The constant JSON.
+     */
     public static final MediaType JSON = MediaType.parse("application/json");
 
     private static final Logger LOG = LoggerFactory.getLogger(HttpHelper.class);
@@ -44,16 +56,16 @@ public class HttpHelper {
     private static final Gson GSON = new Gson();
 
     private final OkHttpClient client = new OkHttpClient.Builder().build();
-
+    
     /**
      * Send a post http request to shenyu gateway.
      *
+     * @param <S> type of response object
+     * @param <Q> type of request object
      * @param path path
      * @param req request body as an object
      * @param respType response type passed to {@link Gson#fromJson(String, Class)}
-     * @param <S> type of response object
-     * @param <Q> type of request object
-     * @return response
+     * @return response s
      * @throws IOException IO exception
      */
     public <S, Q> S postGateway(final String path, final Q req, final Class<S> respType) throws IOException {
@@ -66,28 +78,28 @@ public class HttpHelper {
         LOG.info("postGateway({}) resp({})", path, respBody);
         return GSON.fromJson(respBody, respType);
     }
-
+    
     /**
      * Send a get http request to shenyu gateway without headers.
      *
+     * @param <S> response type
      * @param path path
      * @param type type of response passed to {@link Gson#fromJson(String, Type)}
-     * @param <S> response type
-     * @return response
+     * @return response from gateway
      * @throws IOException IO exception
      */
     public <S> S getFromGateway(final String path, final Type type) throws IOException {
         return this.getFromGateway(path, null, type);
     }
-
+    
     /**
      * Send a get http request to shenyu gateway with headers.
      *
+     * @param <S> response type
      * @param path path
      * @param headers headers
      * @param type type of response passed to {@link Gson#fromJson(String, Type)}
-     * @param <S> response type
-     * @return response
+     * @return response from gateway
      * @throws IOException IO exception
      */
     public <S> S getFromGateway(final String path, final Map<String, Object> headers, final Type type) throws IOException {
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/pom.xml b/shenyu-integrated-test/shenyu-integrated-test-http/pom.xml
index 953d4e3..e293668 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/pom.xml
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/pom.xml
@@ -20,10 +20,9 @@
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
-        <artifactId>shenyu-integrated-test</artifactId>
         <groupId>org.apache.shenyu</groupId>
+        <artifactId>shenyu-integrated-test</artifactId>
         <version>2.4.1-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
     </parent>
 
     <artifactId>shenyu-integrated-test-http</artifactId>
@@ -110,7 +109,7 @@
                     </execution>
                 </executions>
                 <configuration>
-                    <mainClass>org.apache.shenyu.integratedtest.http.App</mainClass>
+                    <mainClass>org.apache.shenyu.integrated.test.http.HttpIntegratedBootstrap</mainClass>
                     <executable>true</executable>
                 </configuration>
             </plugin>
@@ -135,7 +134,6 @@
                     </buildArgs>
                 </configuration>
             </plugin>
-
         </plugins>
     </build>
 </project>
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/main/java/org/apache/shenyu/integratedtest/http/App.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/main/java/org/apache/shenyu/integrated/test/http/HttpIntegratedBootstrap.java
similarity index 84%
rename from shenyu-integrated-test/shenyu-integrated-test-http/src/main/java/org/apache/shenyu/integratedtest/http/App.java
rename to shenyu-integrated-test/shenyu-integrated-test-http/src/main/java/org/apache/shenyu/integrated/test/http/HttpIntegratedBootstrap.java
index 2714af4..9cec25f 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/main/java/org/apache/shenyu/integratedtest/http/App.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/src/main/java/org/apache/shenyu/integrated/test/http/HttpIntegratedBootstrap.java
@@ -15,22 +15,23 @@
  * limitations under the License.
  */
 
-package org.apache.shenyu.integratedtest.http;
+package org.apache.shenyu.integrated.test.http;
 
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 
 /**
- * Hello world.
+ * The type Http integrated bootstrap.
  */
 @SpringBootApplication
-public class App {
-
+public class HttpIntegratedBootstrap {
+    
     /**
      * main method of App.
+     *
      * @param args args
      */
     public static void main(final String[] args) {
-        SpringApplication.run(App.class);
+        SpringApplication.run(HttpIntegratedBootstrap.class);
     }
 }
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/HelloWorldTest.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/DividePluginTest.java
similarity index 92%
rename from shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/HelloWorldTest.java
rename to shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/DividePluginTest.java
index 17753dc..6b66db1 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/HelloWorldTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/DividePluginTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shenyu.integratedtest.http;
+package org.apache.shenyu.integrated.test.http;
 
 import org.apache.shenyu.integratedtest.common.AbstractTest;
 import org.apache.shenyu.integratedtest.common.dto.OrderDTO;
@@ -24,7 +24,7 @@ import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
 
-public class HelloWorldTest extends AbstractTest {
+public class DividePluginTest extends AbstractTest {
 
     @Test
     public void testHelloWorld() throws Exception {
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/JwtTest.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/JwtPluginTest.java
similarity index 95%
rename from shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/JwtTest.java
rename to shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/JwtPluginTest.java
index 87e30a8..b48bb03 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/JwtTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/JwtPluginTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shenyu.integratedtest.http;
+package org.apache.shenyu.integrated.test.http.combination;
 
 import io.jsonwebtoken.Jwts;
 import io.jsonwebtoken.SignatureAlgorithm;
@@ -31,7 +31,7 @@ import java.util.Map;
 import static org.hamcrest.Matchers.is;
 import static org.junit.Assert.assertThat;
 
-public final class JwtTest extends AbstractTest {
+public final class JwtPluginTest extends AbstractTest {
 
     @Test
     public void testJwt() throws IOException {
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/HttpRateLimitTest.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/RateLimiterPluginTest.java
similarity index 94%
rename from shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/HttpRateLimitTest.java
rename to shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/RateLimiterPluginTest.java
index 35e0e60..dedd649 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/HttpRateLimitTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/RateLimiterPluginTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shenyu.integratedtest.http;
+package org.apache.shenyu.integrated.test.http.combination;
 
 import com.google.gson.reflect.TypeToken;
 import org.apache.shenyu.integratedtest.common.AbstractTest;
@@ -28,7 +28,7 @@ import java.util.concurrent.Future;
 
 import static org.junit.Assert.assertEquals;
 
-public class HttpRateLimitTest extends AbstractTest {
+public class RateLimiterPluginTest extends AbstractTest {
 
     @Test
     public void testSlidingWindow() throws Exception {
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/RedirectTest.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/RedirectPluginTest.java
similarity index 94%
rename from shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/RedirectTest.java
rename to shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/RedirectPluginTest.java
index 878c7a0..8616d1c 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/RedirectTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/RedirectPluginTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shenyu.integratedtest.http;
+package org.apache.shenyu.integrated.test.http.combination;
 
 import org.apache.shenyu.integratedtest.common.AbstractTest;
 import org.apache.shenyu.integratedtest.common.helper.HttpHelper;
@@ -29,7 +29,7 @@ import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 
-public final class RedirectTest extends AbstractTest {
+public final class RedirectPluginTest extends AbstractTest {
 
     @Test
     public void test() throws IOException {
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/SignTest.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/SignPluginTest.java
similarity index 97%
rename from shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/SignTest.java
rename to shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/SignPluginTest.java
index 0ff2572..7974ae7 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/SignTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/SignPluginTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shenyu.integratedtest.http;
+package org.apache.shenyu.integrated.test.http.combination;
 
 import com.google.common.collect.Maps;
 import com.google.gson.reflect.TypeToken;
@@ -32,7 +32,7 @@ import java.util.Map;
 
 import static org.junit.Assert.assertEquals;
 
-public class SignTest extends AbstractTest {
+public class SignPluginTest extends AbstractTest {
 
     @Test
     public void testSign() throws Exception {
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/WafTest.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/WafPluginTest.java
similarity index 93%
rename from shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/WafTest.java
rename to shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/WafPluginTest.java
index 94c845b..f2b49d0 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/WafTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integrated/test/http/combination/WafPluginTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shenyu.integratedtest.http;
+package org.apache.shenyu.integrated.test.http.combination;
 
 import org.apache.shenyu.integratedtest.common.AbstractTest;
 import org.apache.shenyu.integratedtest.common.helper.HttpHelper;
@@ -29,7 +29,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertThat;
 
-public final class WafTest extends AbstractTest {
+public final class WafPluginTest extends AbstractTest {
 
     @Test
     public void test() throws IOException {
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/AppTest.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/AppTest.java
deleted file mode 100644
index 91be86a..0000000
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/AppTest.java
+++ /dev/null
@@ -1,36 +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.shenyu.integratedtest.http;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertTrue;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest {
-
-    /**
-     * Rigorous Test :-).
-     */
-    @Test
-    public void shouldAnswerWithTrue() {
-        assertTrue(true);
-    }
-}
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/package-info.java b/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/package-info.java
deleted file mode 100644
index 93b33b7..0000000
--- a/shenyu-integrated-test/shenyu-integrated-test-http/src/test/java/org/apache/shenyu/integratedtest/http/package-info.java
+++ /dev/null
@@ -1,21 +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.
- */
-
-/**
- * put http specific tests here.
- */
-package org.apache.shenyu.integratedtest.http;
diff --git a/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/pom.xml b/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/pom.xml
index 1515aab..2b67e25 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/pom.xml
+++ b/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/pom.xml
@@ -19,10 +19,9 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <parent>
-        <artifactId>shenyu-integrated-test</artifactId>
         <groupId>org.apache.shenyu</groupId>
+        <artifactId>shenyu-integrated-test</artifactId>
         <version>2.4.1-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
     </parent>
 
     <artifactId>shenyu-integrated-test-spring-cloud</artifactId>
@@ -232,7 +231,7 @@
                     </execution>
                 </executions>
                 <configuration>
-                    <mainClass>org.apache.shenyu.integratedtest.springcloud.ShenyuBootstrapApplication</mainClass>
+                    <mainClass>org.apache.shenyu.integratedtest.springcloud.SpringCloudIntegratedBootstrap</mainClass>
                     <executable>true</executable>
                 </configuration>
             </plugin>
diff --git a/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/main/java/org/apache/shenyu/integratedtest/springcloud/ShenyuBootstrapApplication.java b/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/main/java/org/apache/shenyu/integratedtest/springcloud/SpringCloudIntegratedBootstrap.java
similarity index 88%
rename from shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/main/java/org/apache/shenyu/integratedtest/springcloud/ShenyuBootstrapApplication.java
rename to shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/main/java/org/apache/shenyu/integratedtest/springcloud/SpringCloudIntegratedBootstrap.java
index dd475fc..00794ab 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/main/java/org/apache/shenyu/integratedtest/springcloud/ShenyuBootstrapApplication.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/main/java/org/apache/shenyu/integratedtest/springcloud/SpringCloudIntegratedBootstrap.java
@@ -22,17 +22,18 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 
 /**
- * Hello world.
+ * The type Spring cloud integrated bootstrap.
  */
 @SpringBootApplication
 @EnableDiscoveryClient
-public class ShenyuBootstrapApplication {
+public class SpringCloudIntegratedBootstrap {
+    
     /**
      * main method of App.
      *
      * @param args args
      */
     public static void main(final String[] args) {
-        SpringApplication.run(ShenyuBootstrapApplication.class);
+        SpringApplication.run(SpringCloudIntegratedBootstrap.class);
     }
 }
diff --git a/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/test/java/org/apache/shenyu/integratedtest/springcloud/HelloWorldTest.java b/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/test/java/org/apache/shenyu/integratedtest/springcloud/SpringCloudPluginTest.java
similarity index 96%
rename from shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/test/java/org/apache/shenyu/integratedtest/springcloud/HelloWorldTest.java
rename to shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/test/java/org/apache/shenyu/integratedtest/springcloud/SpringCloudPluginTest.java
index 0ebbce3..f80c59b 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/test/java/org/apache/shenyu/integratedtest/springcloud/HelloWorldTest.java
+++ b/shenyu-integrated-test/shenyu-integrated-test-spring-cloud/src/test/java/org/apache/shenyu/integratedtest/springcloud/SpringCloudPluginTest.java
@@ -26,7 +26,7 @@ import java.io.IOException;
 
 import static org.junit.Assert.assertEquals;
 
-public class HelloWorldTest extends AbstractTest {
+public class SpringCloudPluginTest extends AbstractTest {
 
     @Test
     public void testHelloWorld() throws IOException {
@@ -34,5 +34,4 @@ public class HelloWorldTest extends AbstractTest {
         order = HttpHelper.INSTANCE.postGateway("/springcloud/order/save", order, OrderDTO.class);
         assertEquals("hello world spring cloud save order", order.getName());
     }
-
 }