fjtirado commented on code in PR #3459:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3459#discussion_r1549631073


##########
kogito-serverless-workflow/kogito-serverless-workflow-executor-core/src/test/java/org/kie/kogito/serverless/workflow/executor/StaticWorkflowApplicationTest.java:
##########
@@ -76,6 +78,19 @@ void helloWorldFile() throws IOException {
         }
     }
 
+    @Test
+    void switchFile() throws IOException {
+        try (
+                StaticWorkflowApplication application = 
StaticWorkflowApplication.create();
+                Reader reader = new 
InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream("switch.yaml")))
 {
+            Workflow workflow = ServerlessWorkflowUtils.getWorkflow(reader, 
WorkflowFormat.YAML);
+            assertThat(application.execute(workflow, Map.of("condition1", 
false, "condition2", false)).getWorkflowdata().get("output")).isEqualTo(new 
TextNode("default"));
+            assertThat(application.execute(workflow, Map.of("condition1", 
true, "condition2", false)).getWorkflowdata().get("output")).isEqualTo(new 
TextNode("branch1"));
+            assertThat(application.execute(workflow, Map.of("condition1", 
false, "condition2", true)).getWorkflowdata().get("output")).isEqualTo(new 
TextNode("branch1"));
+            assertThat(application.execute(workflow, Map.of("condition1", 
true, "condition2", true)).getWorkflowdata().get("output")).isEqualTo(new 
TextNode("branch1"));

Review Comment:
   Thats the one the formatter generates. I agree is weird. 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to