Skip to content

Commit

Permalink
fix (ITest): all tests run fine
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 committed May 31, 2023
1 parent 3a98436 commit 17675c4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/test/java/itest/ShouldAcceptMultipartWithBoundaryIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,20 @@
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

class ShouldAcceptMultipartWithBoundaryIT extends StandardSelfTest {
static final String TEST_RULE_NAME = "Test_Rule";

@BeforeAll
static void setup() throws Exception {}
static final Map<String, String> NULL_RESULT = new HashMap<>();

static {
NULL_RESULT.put("result", null);
}

// @BeforeAll
// static void setup() throws Exception {}

@AfterEach
void cleanup() throws Exception {
Expand All @@ -85,7 +90,7 @@ void cleanup() throws Exception {
"meta",
Map.of("type", HttpMimeType.JSON.mime(), "status", "OK"),
"data",
new HashMap<>()));
NULL_RESULT));

try {
JsonObject deleteResult = deleteResponse.get(5, TimeUnit.SECONDS);
Expand Down Expand Up @@ -142,7 +147,6 @@ void shouldAcceptMultipartWithBoundary(String contentType) throws Exception {
});
try {
JsonObject result = response.get(5, TimeUnit.SECONDS);
// Process the result
System.out.println("Received response: " + result.toString());
} catch (TimeoutException e) {
response.completeExceptionally(e);
Expand Down

0 comments on commit 17675c4

Please sign in to comment.