From b62efde12a10614da103552f321f90ccc7deeed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20S=C5=82abek?= Date: Mon, 18 Nov 2024 12:36:56 +0100 Subject: [PATCH] remove duplicated tests --- .../nussknacker/engine/InterpreterSpec.scala | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/scenario-compiler/src/test/scala/pl/touk/nussknacker/engine/InterpreterSpec.scala b/scenario-compiler/src/test/scala/pl/touk/nussknacker/engine/InterpreterSpec.scala index 940908bbd4c..aba2510a0bf 100644 --- a/scenario-compiler/src/test/scala/pl/touk/nussknacker/engine/InterpreterSpec.scala +++ b/scenario-compiler/src/test/scala/pl/touk/nussknacker/engine/InterpreterSpec.scala @@ -1024,22 +1024,6 @@ class InterpreterSpec extends AnyFunSuite with Matchers { interpretProcess(process, Transaction()) shouldBe "someKey" } - test("spel template ast operation parameter should work for template and literal value") { - val process = ScenarioBuilder - .streaming("test") - .source("start", "transaction-source") - .enricher( - "ex", - "out", - "templateAstOperationService", - "template" -> Expression.spelTemplate(s"Hello#{#input.msisdn}") - ) - .buildSimpleVariable("result-end", resultVariable, "#out".spel) - .emptySink("end-end", "dummySink") - - interpretProcess(process, Transaction(msisdn = "foo")) should equal("[Hello]-literal[foo]-templated") - } - test("spel template AST operation parameter should handle multiple cases") { val testCases = Seq( ( @@ -1086,38 +1070,6 @@ class InterpreterSpec extends AnyFunSuite with Matchers { } } - test("spel template ast operation parameter should work for single literal value") { - val process = ScenarioBuilder - .streaming("test") - .source("start", "transaction-source") - .enricher( - "ex", - "out", - "templateAstOperationService", - "template" -> Expression.spelTemplate("Hello") - ) - .buildSimpleVariable("result-end", resultVariable, "#out".spel) - .emptySink("end-end", "dummySink") - - interpretProcess(process, Transaction(msisdn = "foo")) should equal("[Hello]-literal") - } - - test("spel template ast operation parameter should work for single templated function call expression") { - val process = ScenarioBuilder - .streaming("test") - .source("start", "transaction-source") - .enricher( - "ex", - "out", - "templateAstOperationService", - "template" -> Expression.spelTemplate("#{#input.msisdn.toString()}") - ) - .buildSimpleVariable("result-end", resultVariable, "#out".spel) - .emptySink("end-end", "dummySink") - - interpretProcess(process, Transaction(msisdn = "foo")) should equal("[foo]-templated") - } - } class ThrowingService extends Service {