From 94ed43978efd21cca8e4939de6f59c1624b315eb Mon Sep 17 00:00:00 2001 From: v_kkhuang <420895376@qq.com> Date: Sun, 8 Oct 2023 16:09:18 +0800 Subject: [PATCH] add configration test --- .../linkis-common/src/test/resources/linkis.properties | 3 ++- .../org/apache/linkis/common/conf/ConfigurationTest.scala | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/linkis-commons/linkis-common/src/test/resources/linkis.properties b/linkis-commons/linkis-common/src/test/resources/linkis.properties index d656beedd2..d6e47523f2 100644 --- a/linkis-commons/linkis-common/src/test/resources/linkis.properties +++ b/linkis-commons/linkis-common/src/test/resources/linkis.properties @@ -14,4 +14,5 @@ # linkis.jobhistory.error.msg.tip=properties支持中文 -linkis.test.error.conf=123 \ No newline at end of file +linkis.test.error.conf=123 +linkis.test.error.conf2= 456 \ No newline at end of file diff --git a/linkis-commons/linkis-common/src/test/scala/org/apache/linkis/common/conf/ConfigurationTest.scala b/linkis-commons/linkis-common/src/test/scala/org/apache/linkis/common/conf/ConfigurationTest.scala index 00ba6be7fc..0e817c4092 100644 --- a/linkis-commons/linkis-common/src/test/scala/org/apache/linkis/common/conf/ConfigurationTest.scala +++ b/linkis-commons/linkis-common/src/test/scala/org/apache/linkis/common/conf/ConfigurationTest.scala @@ -30,7 +30,9 @@ class ConfigurationTest { @Test private[conf] def testFormatValue(): Unit = { val confvalue = CommonVars[Int]("linkis.test.error.conf", 456).getValue + val confvalue2 = CommonVars[Int]("linkis.test.error.conf2", 789).getValue Assertions.assertTrue(123 == confvalue) + Assertions.assertTrue(456 == confvalue2) }