lightClouds917 commented on code in PR #6519:
URL: https://github.com/apache/incubator-seata/pull/6519#discussion_r1627527406


##########
changes/en-us/2.x.md:
##########
@@ -158,6 +158,7 @@ Add changes here for all PR submitted to the 2.x branch.
 - [[#6456](https://github.com/apache/incubator-seata/pull/6456)] adjust the 
test cases related to dynamic configuration
 - [[#6466](https://github.com/apache/incubator-seata/pull/6466)] support redis 
integration testing
 - [[#6484](https://github.com/apache/incubator-seata/pull/6484)] fix 
FileConfigurationTest and MockServerTest fail
+- [[#6519](https://github.com/apache/incubator-seata/pull/6484)] 
增加saga模块的测试用例覆盖率

Review Comment:
   /pull/6484? 6519.



##########
saga/seata-saga-spring/src/test/java/org/apache/seata/saga/engine/expression/spel/SpringELExpressionFactoryTest.java:
##########
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.seata.saga.engine.expression.spel;
+
+import org.junit.jupiter.api.Test;
+
+/**
+ * SpringELExpressionFactoryTest
+ */
+public class SpringELExpressionFactoryTest {
+    @Test
+    public void testCreateExpression() {
+        SpringELExpressionFactory factory = new 
SpringELExpressionFactory(null);
+        factory.createExpression("'Hello World'.concat('!')");
+    }

Review Comment:
   need assert result,not only call method



##########
changes/zh-cn/2.x.md:
##########
@@ -155,6 +155,7 @@
 - [[#6456](https://github.com/apache/incubator-seata/pull/6456)] 调整动态配置监听测试用例
 - [[#6466](https://github.com/apache/incubator-seata/pull/6466)] 支持redis的集成测试
 - [[#6484](https://github.com/apache/incubator-seata/pull/6484)] 
修复FileConfigurationTest和MockServerTest失败
+- [[#6519](https://github.com/apache/incubator-seata/pull/6484)] 
增加saga模块的测试用例覆盖率

Review Comment:
   6519



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to