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")); }