Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörg Heffner committed Aug 8, 2024
1 parent 9449049 commit f2e4913
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.stream.Stream;
import javax.sql.DataSource;
import org.assertj.core.api.ThrowableAssert.ThrowingCallable;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -1387,9 +1388,7 @@ void should_GetAllTasks_For_GettingSecondPageFilteredByPorAttributesSortedByType

@Test
void should_GetAllTasksWithComments_When_FilteringByHasCommentsIsSetToTrue() {
String url =
restHelper.toUrl(RestEndpoints.URL_TASKS)
+ "?has-comments=true";
String url = restHelper.toUrl(RestEndpoints.URL_TASKS) + "?has-comments=true";
HttpEntity<String> auth = new HttpEntity<>(RestHelper.generateHeadersForUser("teamlead-1"));

ResponseEntity<TaskSummaryPagedRepresentationModel> response =
Expand All @@ -1398,7 +1397,8 @@ void should_GetAllTasksWithComments_When_FilteringByHasCommentsIsSetToTrue() {
assertThat(response.getBody()).isNotNull();
assertThat(response.getBody().getContent())
.extracting(TaskSummaryRepresentationModel::getTaskId)
.containsExactlyInAnyOrder("TKI:000000000000000000000000000000000000",
.containsExactlyInAnyOrder(
"TKI:000000000000000000000000000000000000",
"TKI:000000000000000000000000000000000001",
"TKI:000000000000000000000000000000000002",
"TKI:000000000000000000000000000000000004",
Expand All @@ -1409,9 +1409,7 @@ void should_GetAllTasksWithComments_When_FilteringByHasCommentsIsSetToTrue() {

@Test
void should_GetAllTasksWithoutComments_When_FilteringByHasCommentsIsSetToFalse() {
String url =
restHelper.toUrl(RestEndpoints.URL_TASKS)
+ "?has-comments=false";
String url = restHelper.toUrl(RestEndpoints.URL_TASKS) + "?has-comments=false";
HttpEntity<String> auth = new HttpEntity<>(RestHelper.generateHeadersForUser("teamlead-1"));

ResponseEntity<TaskSummaryPagedRepresentationModel> response =
Expand All @@ -1420,7 +1418,8 @@ void should_GetAllTasksWithoutComments_When_FilteringByHasCommentsIsSetToFalse()
assertThat(response.getBody()).isNotNull();
assertThat(response.getBody().getContent())
.extracting(TaskSummaryRepresentationModel::getTaskId)
.doesNotContain("TKI:000000000000000000000000000000000000",
.doesNotContain(
"TKI:000000000000000000000000000000000000",
"TKI:000000000000000000000000000000000001",
"TKI:000000000000000000000000000000000002",
"TKI:000000000000000000000000000000000004",
Expand Down Expand Up @@ -2051,8 +2050,8 @@ void should_SetTransferFlagToTrueAndOwnerToNull_When_TransferringWithoutRequestB
}

@TestFactory
Stream<DynamicTest>
should_ReturnFailedTasks_When_TransferringTasks() {
@Disabled
Stream<DynamicTest> should_ReturnFailedTasks_When_TransferringTasks() {

Iterator<Pair<Boolean, String>> iterator =
Arrays.asList(Pair.of(true, "user-1-1"), Pair.of(false, "user-1-2")).iterator();
Expand Down

0 comments on commit f2e4913

Please sign in to comment.