From 78ae48a0468fc981349323e9a1c82bc45c94325d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pere=20Fern=C3=A1ndez?= Date: Wed, 13 Nov 2024 14:41:29 +0100 Subject: [PATCH] - fix test imports --- .../codegen/usertask/UserTaskCodegenHelperTest.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kogito-codegen-modules/kogito-codegen-processes/src/test/java/org/kie/kogito/codegen/usertask/UserTaskCodegenHelperTest.java b/kogito-codegen-modules/kogito-codegen-processes/src/test/java/org/kie/kogito/codegen/usertask/UserTaskCodegenHelperTest.java index 365bc7c6afa..1e1beb05710 100644 --- a/kogito-codegen-modules/kogito-codegen-processes/src/test/java/org/kie/kogito/codegen/usertask/UserTaskCodegenHelperTest.java +++ b/kogito-codegen-modules/kogito-codegen-processes/src/test/java/org/kie/kogito/codegen/usertask/UserTaskCodegenHelperTest.java @@ -21,12 +21,13 @@ import java.nio.file.Path; -import org.assertj.core.api.Assertions; import org.jbpm.process.core.Work; import org.jbpm.process.core.impl.WorkImpl; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import static org.assertj.core.api.Assertions.assertThat; + class UserTaskCodegenHelperTest { static final String PROCESS_ID = "approvals"; static final String TASK_ID = "taskId"; @@ -45,17 +46,17 @@ void setUp() { @Test void testGetWorkProcessId() { - Assertions.assertThat(UserTaskCodegenHelper.processId(work)).isEqualTo("Approvals"); + assertThat(UserTaskCodegenHelper.processId(work)).isEqualTo("Approvals"); } @Test void testGetWorkClassName() { - Assertions.assertThat(UserTaskCodegenHelper.className(work)).isEqualTo("Approvals_TaskId"); + assertThat(UserTaskCodegenHelper.className(work)).isEqualTo("Approvals_TaskId"); } @Test void testGetWorkPackagePath() { - Assertions.assertThat(UserTaskCodegenHelper.path(work)) + assertThat(UserTaskCodegenHelper.path(work)) .isNotNull() .isEqualTo(PACKAGE_PATH); @@ -63,11 +64,11 @@ void testGetWorkPackagePath() { @Test void testGetPath() { - Assertions.assertThat(UserTaskCodegenHelper.path(PACKAGE)) + assertThat(UserTaskCodegenHelper.path(PACKAGE)) .isNotNull() .isEqualTo(PACKAGE_PATH); - Assertions.assertThat(UserTaskCodegenHelper.path("test")) + assertThat(UserTaskCodegenHelper.path("test")) .isNotNull() .isEqualTo(Path.of("test")); }