From ecbd7ddea1490406fd8fbc5523281e67540e593d Mon Sep 17 00:00:00 2001 From: David Mackessy Date: Wed, 11 Dec 2024 08:19:24 +0000 Subject: [PATCH] add log to check response --- .../java/org/hisp/dhis/merge/CategoryOptionMergeTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dhis-2/dhis-test-e2e/src/test/java/org/hisp/dhis/merge/CategoryOptionMergeTest.java b/dhis-2/dhis-test-e2e/src/test/java/org/hisp/dhis/merge/CategoryOptionMergeTest.java index db7ad8e0972b..55eea868e230 100644 --- a/dhis-2/dhis-test-e2e/src/test/java/org/hisp/dhis/merge/CategoryOptionMergeTest.java +++ b/dhis-2/dhis-test-e2e/src/test/java/org/hisp/dhis/merge/CategoryOptionMergeTest.java @@ -33,6 +33,7 @@ import static org.hamcrest.Matchers.hasItem; import static org.hamcrest.Matchers.hasItems; import static org.hamcrest.Matchers.hasSize; +import static org.junit.jupiter.api.Assertions.assertEquals; import com.google.gson.JsonArray; import com.google.gson.JsonObject; @@ -151,7 +152,8 @@ void validDataElementMergeTest() { } private void setupMetadata() { - metadataActions.post(metadata()).validateStatus(200); + ApiResponse apiResponse = metadataActions.post(metadata()).validateStatus(200); + assertEquals("test", apiResponse.getAsString()); } @Test