From 621790896b41a059dc9931cf720c692a759a8127 Mon Sep 17 00:00:00 2001 From: Dale Lee <1658850308@qq.com> Date: Sat, 4 May 2024 15:33:03 +0800 Subject: [PATCH] =?UTF-8?q?feature=20#I9H6GN=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../validate/ValidateKotlinScriptComponentTest.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/liteflow-testcase-el/liteflow-testcase-el-script-kotlin-springboot/src/test/java/com/yomahub/liteflow/test/script/kotlin/validate/ValidateKotlinScriptComponentTest.java b/liteflow-testcase-el/liteflow-testcase-el-script-kotlin-springboot/src/test/java/com/yomahub/liteflow/test/script/kotlin/validate/ValidateKotlinScriptComponentTest.java index 9c9e1885d..841d5933c 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-script-kotlin-springboot/src/test/java/com/yomahub/liteflow/test/script/kotlin/validate/ValidateKotlinScriptComponentTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-script-kotlin-springboot/src/test/java/com/yomahub/liteflow/test/script/kotlin/validate/ValidateKotlinScriptComponentTest.java @@ -23,19 +23,6 @@ public class ValidateKotlinScriptComponentTest { String wrongScript = "val number: Int = \"123\""; // 使用转换函数 String correctScript = "val number: Int = \"123\".toInt()"; -// ScriptEngineManager scriptEngineManager = new ScriptEngineManager(); -// ScriptEngine scriptEngine = scriptEngineManager.getEngineByName("kotlin"); -// Compilable compilable = (Compilable) scriptEngine; -// compilable.compile(correctScript); - -// try { -// ScriptExecutor scriptExecutor = ScriptExecutorFactory.loadInstance() -// .getScriptExecutor(ScriptTypeEnum.KOTLIN.getDisplayName()); -// scriptExecutor.compile(wrongScript); -// } catch (Exception e) { -// -// } - Assertions.assertTrue(ScriptValidator.validate(correctScript)); Assertions.assertFalse(ScriptValidator.validate(wrongScript));