Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ryber committed Feb 18, 2024
1 parent d0f8086 commit 7d37dab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7d37dab

Please sign in to comment.