diff --git a/unirest-bdd-tests/src/test/java/BehaviorTests/MultiPartFormPostingTest.java b/unirest-bdd-tests/src/test/java/BehaviorTests/MultiPartFormPostingTest.java index e20f54fc..fce25f39 100644 --- a/unirest-bdd-tests/src/test/java/BehaviorTests/MultiPartFormPostingTest.java +++ b/unirest-bdd-tests/src/test/java/BehaviorTests/MultiPartFormPostingTest.java @@ -26,7 +26,6 @@ package BehaviorTests; import kong.unirest.core.ContentType; -import kong.unirest.core.HttpResponse; import kong.unirest.core.MultipartMode; import kong.unirest.core.Unirest; import org.junit.jupiter.api.Test; @@ -437,8 +436,8 @@ void mediaTypesForParts() { .assertHasParam("boundary")) .assertBodyPart("content", p -> { p.assertFileName("spiderman"); - p.asserContentType("application/pdf"); - p.asserContentDisposition("form-data; name=\"content\"; filename=\"spiderman\""); + p.assertContentType("application/pdf"); + p.assertContentDisposition("form-data; name=\"content\"; filename=\"spiderman\""); }) .assertBodyPart("metadata", p -> { p.assertBody("{\"foo\": 1}"); diff --git a/unirest-bdd-tests/src/test/java/BehaviorTests/RequestCapture.java b/unirest-bdd-tests/src/test/java/BehaviorTests/RequestCapture.java index c131e51a..95b1fed1 100644 --- a/unirest-bdd-tests/src/test/java/BehaviorTests/RequestCapture.java +++ b/unirest-bdd-tests/src/test/java/BehaviorTests/RequestCapture.java @@ -374,12 +374,12 @@ public MultiPart exists() { return this; } - public MultiPart asserContentType(String contentType) { + public MultiPart assertContentType(String contentType) { TestUtil.assertMultiMap(headers).contains(MapEntry.entry("content-type", contentType)); return this; } - public MultiPart asserContentDisposition(String disposition) { + public MultiPart assertContentDisposition(String disposition) { TestUtil.assertMultiMap(headers).contains(MapEntry.entry("content-disposition", disposition)); return this; }