Skip to content

Commit

Permalink
Closes Taskana#2542 - Flag that counts the comments of a task has bee…
Browse files Browse the repository at this point in the history
…n added
  • Loading branch information
MM1277 committed Apr 2, 2024
1 parent 8874755 commit 6cabe24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void setup() throws Exception {

@WithAccessId(user = "user-1-1")
@Test
void should_CreateTaskComment_For_TaskThatAlreadyHasComments_And_UpdateNumberOfComments()
void should_CreateTaskCommentAndUpdateNumberOfComments_For_TaskThatAlreadyHasComments()
throws Exception {
TaskComment taskCommentToCreate = taskService.newTaskComment(taskWithComments.getId());
taskCommentToCreate.setTextField("Some text");
Expand Down Expand Up @@ -113,7 +113,7 @@ void should_FailToCreateTaskComment_When_UserHasNoWorkbasketPermission() {

@WithAccessId(user = "user-1-1")
@Test
void should_CreateTaskComment_When_CopyingAnotherComment_And_UpdateNumberOfComments()
void should_CreateTaskCommentAndUpdateNumberOfComments_When_CopyingAnotherComment()
throws Exception {
TaskComment taskCommentToCreate = comment1.copy();

Expand All @@ -128,7 +128,7 @@ void should_CreateTaskComment_When_CopyingAnotherComment_And_UpdateNumberOfComme

@WithAccessId(user = "user-1-1")
@Test
void should_FailToCreateTaskComment_When_TaskIdIsNullOrNonExisting_And_UpdateNumberOfComments()
void should_FailToCreateTaskCommentAndUpdateNumberOfComments_When_TaskIdIsNullOrNonExisting()
throws Exception {
TaskComment newTaskCommentForNonExistingTask =
taskService.newTaskComment("Definitely non existing ID");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void setup() throws Exception {

@WithAccessId(user = "user-1-1")
@Test
void should_DeleteTaskComment_For_TaskCommentId_And_UpdateNumberOfComments() throws Exception {
void should_DeleteTaskCommentAndUpdateNumberOfComments_For_TaskCommentId() throws Exception {
comment1 =
TaskCommentBuilder.newTaskComment()
.taskId(task1.getId())
Expand Down Expand Up @@ -138,7 +138,7 @@ void should_FailToDeleteTaskComment_When_UserHasNoAuthorization() throws Excepti
@WithAccessId(user = "admin")
@WithAccessId(user = "taskadmin")
@TestTemplate
void should_DeleteTaskComment_When_UserIsInAdministrativeRole_And_UpdateNumberOfComments()
void should_DeleteTaskCommentAndUpdateNumberOfComments_When_UserIsInAdministrativeRole()
throws Exception {
comment1 =
TaskCommentBuilder.newTaskComment()
Expand Down

0 comments on commit 6cabe24

Please sign in to comment.