This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-scxml.git
commit a4db26da626c1cc4695f3c33ca3150e97f9bb4d5 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Sep 12 10:39:15 2024 -0400 Remove redundant syntax --- .../apache/commons/scxml2/model/CustomActionTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/org/apache/commons/scxml2/model/CustomActionTest.java b/src/test/java/org/apache/commons/scxml2/model/CustomActionTest.java index eef28032..ec0f8e67 100644 --- a/src/test/java/org/apache/commons/scxml2/model/CustomActionTest.java +++ b/src/test/java/org/apache/commons/scxml2/model/CustomActionTest.java @@ -139,8 +139,8 @@ public class CustomActionTest { final SCXMLExecutor exec = SCXMLTestHelper.getExecutor(scxml); exec.go(); // (4) Single, final state - Assertions.assertEquals("custom", (exec.getStatus().getStates(). - iterator().next()).getId()); + Assertions.assertEquals("custom", exec.getStatus().getStates(). + iterator().next().getId()); // The custom action defined by Hello.class should be called // to execute() exactly twice at this point (one by <my:hello/> and the other by <my:hello/> in external). @@ -169,8 +169,8 @@ public class CustomActionTest { final SCXMLExecutor exec = SCXMLTestHelper.getExecutor(scxml); exec.go(); // (4) Single, final state - Assertions.assertEquals("custom", (exec.getStatus().getStates(). - iterator().next()).getId()); + Assertions.assertEquals("custom", exec.getStatus().getStates(). + iterator().next().getId()); Assertions.assertTrue(exec.getStatus().isFinal()); // The custom action defined by Hello.class should be called @@ -194,8 +194,8 @@ public class CustomActionTest { final SCXMLExecutor exec = SCXMLTestHelper.getExecutor(scxml); exec.go(); // (4) Single, final state - Assertions.assertEquals("custom", (exec.getStatus().getStates(). - iterator().next()).getId()); + Assertions.assertEquals("custom", exec.getStatus().getStates(). + iterator().next().getId()); // The custom action defined by Hello.class should be called // to execute() exactly once at this point (by <my:send/>). @@ -209,8 +209,8 @@ public class CustomActionTest { final SCXMLExecutor exec = SCXMLTestHelper.getExecutor("org/apache/commons/scxml2/hello-world.xml"); exec.go(); // (2) Single, final state - Assertions.assertEquals("hello", (exec.getStatus().getStates(). - iterator().next()).getId()); + Assertions.assertEquals("hello", exec.getStatus().getStates(). + iterator().next().getId()); Assertions.assertTrue(exec.getStatus().isFinal()); } }