From 7a5a76e6b119a18954f2adce6253231497d861a0 Mon Sep 17 00:00:00 2001 From: pozil Date: Thu, 20 Jul 2023 11:07:54 +0200 Subject: [PATCH] feat: simplified test and moved comments --- force-app/main/default/classes/HelloWorldTest.cls | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/force-app/main/default/classes/HelloWorldTest.cls b/force-app/main/default/classes/HelloWorldTest.cls index bf8a0bf..73b0142 100644 --- a/force-app/main/default/classes/HelloWorldTest.cls +++ b/force-app/main/default/classes/HelloWorldTest.cls @@ -6,9 +6,9 @@ public with sharing class HelloWorldTest { public static void helloWorldStaticInvocation() { DataWeave.Script script = new DataWeaveScriptResource.helloWorld(); DataWeave.Result result = script.execute(new Map()); - Assert.areEqual('"Hello World"', result.getValueAsString(), 'Log output becomes the value when there are no other results'); - - Assert.areEqual('"Hello World"', result.getValueAsString(), 'getValueAsString should be idempotent'); + + // DW log output becomes the value when there are no other results + Assert.areEqual('"Hello World"', result.getValueAsString()); } // Uses the /dw/helloWorld.dwl script to log a message @@ -16,8 +16,8 @@ public with sharing class HelloWorldTest { public static void helloWorldDynamicInvocation() { DataWeave.Script script = DataWeave.Script.createScript('helloWorld'); DataWeave.Result result = script.execute(new Map()); - Assert.areEqual('"Hello World"', result.getValueAsString(), 'Log output becomes the value when there are no other results'); - - Assert.areEqual('"Hello World"', result.getValueAsString(), 'getValueAsString should be idempotent'); + + // DW log output becomes the value when there are no other results + Assert.areEqual('"Hello World"', result.getValueAsString()); } } \ No newline at end of file