diff --git a/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java b/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java index d45bebc125..839a34f859 100644 --- a/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java +++ b/linkis-commons/linkis-common/src/test/java/org/apache/linkis/common/exception/ExceptionManagerTest.java @@ -21,6 +21,7 @@ import java.util.HashMap; import java.util.Map; +import java.util.TreeMap; import org.junit.jupiter.api.Test; @@ -40,7 +41,7 @@ void testGenerateException() { + "null"); assertEquals(errorException.getClass(), ExceptionManager.generateException(null).getClass()); assertEquals(errorException.toString(), ExceptionManager.generateException(null).toString()); - Map map = new HashMap<>(); + Map map = new TreeMap<>(); map.put("level", null); map.put("errCode", 1); map.put("desc", "test");