Skip to content

Commit 1becb2b

Browse files
Actually Use contentType Constant
Made the method calls actually refer to the contentType constant as intended.
1 parent 00ad914 commit 1becb2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/com/bandwidth/MessagingApiTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ public void testCreateMessageInvalidPhoneNumber() throws Exception {
6666
public void testUploadDownloadMedia() throws Exception {
6767
final String fileName = "src/test/resources/mediaUpload.png";
6868
final String contentType = "image/png";
69+
6970
File file = new File(fileName);
7071
byte[] fileContents = Files.readAllBytes(file.toPath());
71-
FileWrapper body = new FileWrapper(file, "image/png");
72+
FileWrapper body = new FileWrapper(file, contentType);
73+
7274
String mediaId = "java-media-test";
7375

74-
controller.uploadMedia(ACCOUNT_ID, mediaId, body, "image/png", "no-cache");
76+
controller.uploadMedia(ACCOUNT_ID, mediaId, body, contentType, "no-cache");
7577

7678
InputStream response = controller.getMedia(ACCOUNT_ID, mediaId).getResult();
7779

0 commit comments

Comments
 (0)