You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2022/09/05 09:55:36 UTC

[servicecomb-java-chassis] branch master updated: [SCB-2475] migrate inspector to junit5 (#3318)

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

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new b2591d461 [SCB-2475] migrate inspector to junit5 (#3318)
b2591d461 is described below

commit b2591d4617d799cd4f2968d526975c6a7b88f0d5
Author: TingTing Wang <19...@qq.com>
AuthorDate: Mon Sep 5 17:55:30 2022 +0800

    [SCB-2475] migrate inspector to junit5 (#3318)
---
 .../servicecomb/inspector/internal/TestInspectorImpl.java      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/inspector/src/test/java/org/apache/servicecomb/inspector/internal/TestInspectorImpl.java b/inspector/src/test/java/org/apache/servicecomb/inspector/internal/TestInspectorImpl.java
index 634354f39..4875d8dd9 100644
--- a/inspector/src/test/java/org/apache/servicecomb/inspector/internal/TestInspectorImpl.java
+++ b/inspector/src/test/java/org/apache/servicecomb/inspector/internal/TestInspectorImpl.java
@@ -57,13 +57,13 @@ import org.apache.servicecomb.swagger.invocation.exception.InvocationException;
 import org.apache.servicecomb.transport.rest.servlet.ServletRestTransport;
 import org.hamcrest.MatcherAssert;
 import org.hamcrest.Matchers;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
 
 import com.netflix.config.DynamicProperty;
 
+import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.condition.EnabledForJreRange;
 import org.junit.jupiter.api.condition.JRE;
 import org.mockito.Mockito;
@@ -75,7 +75,7 @@ public class TestInspectorImpl {
 
   static RegistrationManager originRegistrationManagerInstance;
 
-  @BeforeClass
+  @BeforeAll
   public static void setup() throws IOException {
     ConfigUtil.installDynamicConfig();
     schemas.put("schema1", IOUtils
@@ -105,7 +105,7 @@ public class TestInspectorImpl {
     return inspector;
   }
 
-  @AfterClass
+  @AfterAll
   public static void teardown() {
     ArchaiusUtils.resetConfig();
     SCBEngine.getInstance().destroy();