use of com.yahoo.jdisc.http.HttpResponse in project vespa by vespa-engine.
the class EmptyResponseFilterTestCase method requireThatEmptyFilterDoesNothing.
@Test
public void requireThatEmptyFilterDoesNothing() throws Exception {
final HttpRequest request = newRequest(Method.GET, "/status.html", Version.HTTP_1_1);
final HttpResponse lhs = HttpResponse.newInstance(Response.Status.OK);
final HttpResponse rhs = HttpResponse.newInstance(Response.Status.OK);
EmptyResponseFilter.INSTANCE.filter(lhs, null);
assertEquals(lhs.headers(), rhs.headers());
assertEquals(lhs.context(), rhs.context());
assertEquals(lhs.getError(), rhs.getError());
assertEquals(lhs.getMessage(), rhs.getMessage());
}
Aggregations