You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/06/12 14:44:38 UTC
[dubbo] branch 3.0 updated: Fixed test order dependencies in class `PojoUtilsTest` (#9987)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new ca811c442d Fixed test order dependencies in class `PojoUtilsTest` (#9987)
ca811c442d is described below
commit ca811c442d043177b92f023294ee5969c2a95a8a
Author: Kaiyao Ke <47...@users.noreply.github.com>
AuthorDate: Sun Jun 12 22:44:32 2022 +0800
Fixed test order dependencies in class `PojoUtilsTest` (#9987)
* fixed test order dependencies
* changed AfterAll routine to static
---
.../org/apache/dubbo/common/utils/SerializeClassCheckerTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/SerializeClassCheckerTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/SerializeClassCheckerTest.java
index b58f399808..b637923d28 100644
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/SerializeClassCheckerTest.java
+++ b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/SerializeClassCheckerTest.java
@@ -21,6 +21,7 @@ import org.apache.dubbo.common.constants.CommonConstants;
import javassist.compiler.Javac;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
import java.net.Socket;
@@ -35,6 +36,11 @@ public class SerializeClassCheckerTest {
SerializeClassChecker.clearInstance();
}
+ @AfterAll
+ public static void tearDown() {
+ SerializeClassChecker.clearInstance();
+ }
+
@Test
public void testCommon() {
SerializeClassChecker serializeClassChecker = SerializeClassChecker.getInstance();