Skip to content

Commit

Permalink
updated tests to return name
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Wells <[email protected]>
  • Loading branch information
matthewryanwells committed Jun 28, 2023
1 parent 7de27e1 commit 3e7d814
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import java.io.IOException;
import java.util.Locale;

import org.apache.http.Header;
import org.apache.http.HeaderElement;
import org.apache.http.ParseException;
import org.junit.Test;
import org.opensearch.client.Request;
import org.opensearch.client.Response;
Expand Down Expand Up @@ -64,6 +67,6 @@ public void contentHeaderTest() throws IOException {

Response response = client().performRequest(sqlRequest);

assertEquals(response.getEntity().getContentType(), "content-type: " + CONTENT_TYPE);
assertEquals(response.getEntity().getContentType().getName(), CONTENT_TYPE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public void contentHeaderTest() throws IOException {

Response response = client().performRequest(sqlRequest);

assertEquals(response.getEntity().getContentType(), "content-type: " + CONTENT_TYPE);
assertEquals(response.getEntity().getContentType().getName(), CONTENT_TYPE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public void contentHeaderTest() throws IOException {

Response response = client().performRequest(sqlRequest);

assertEquals(response.getEntity().getContentType(), "content-type: " + CONTENT_TYPE);
assertEquals(response.getEntity().getContentType().getName(), CONTENT_TYPE);
}
}

0 comments on commit 3e7d814

Please sign in to comment.