mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
优化groovy脚本的测试用例
This commit is contained in:
@@ -5,11 +5,16 @@
|
||||
<![CDATA[
|
||||
import cn.hutool.core.collection.ListUtil
|
||||
import cn.hutool.core.date.DateUtil
|
||||
|
||||
import com.yomahub.liteflow.core.NodeSwitchComponent
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import java.util.function.Consumer
|
||||
import java.util.function.Function
|
||||
import java.util.stream.Collectors
|
||||
|
||||
Logger log = LoggerFactory.getLogger(NodeSwitchComponent.class)
|
||||
log.info("hello")
|
||||
|
||||
def date = DateUtil.parse("2022-10-17 13:31:43")
|
||||
println(date)
|
||||
defaultContext.setData("demoDate", date)
|
||||
|
||||
Reference in New Issue
Block a user