You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2019/01/23 04:12:03 UTC
[incubator-dubbo] branch master updated: use beforeEach and
afterEach
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 0642b3e use beforeEach and afterEach
0642b3e is described below
commit 0642b3e0bd3b4e39614e2faf5273fa16643159b5
Author: ken.lj <ke...@gmail.com>
AuthorDate: Wed Jan 23 12:11:49 2019 +0800
use beforeEach and afterEach
---
.../test/java/org/apache/dubbo/config/ReferenceConfigTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dubbo-compatible/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java b/dubbo-compatible/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
index 46c4c7c..a7139ed 100644
--- a/dubbo-compatible/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
+++ b/dubbo-compatible/src/test/java/org/apache/dubbo/config/ReferenceConfigTest.java
@@ -27,8 +27,8 @@ import com.alibaba.dubbo.config.ReferenceConfig;
import com.alibaba.dubbo.config.RegistryConfig;
import com.alibaba.dubbo.config.ServiceConfig;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class ReferenceConfigTest {
@@ -36,12 +36,12 @@ public class ReferenceConfigTest {
private RegistryConfig registry = new RegistryConfig();
private ProtocolConfig protocol = new ProtocolConfig();
- @BeforeAll
+ @BeforeEach
public void setUp() {
ConfigManager.getInstance().clear();
}
- @AfterAll
+ @AfterEach
public void tearDown() {
ConfigManager.getInstance().clear();
}