Skip to content

Commit

Permalink
- fix test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pefernan committed Nov 13, 2024
1 parent d0ec9dd commit 78ae48a
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -45,29 +46,29 @@ 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);

}

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

0 comments on commit 78ae48a

Please sign in to comment.