use of io.vertx.core.http.impl.headers.HeadersMultiMap in project incubator-servicecomb-java-chassis by apache.
the class RequestHeaderItemTest method serverFormattedElementIfNotFound.
@Test
public void serverFormattedElementIfNotFound() {
HeadersMultiMap headers = new HeadersMultiMap();
String testValue = "testValue";
headers.add("anotherKey", testValue);
when(routingContext.request()).thenReturn(serverRequest);
when(serverRequest.headers()).thenReturn(headers);
ELEMENT.appendServerFormattedItem(accessLogEvent, strBuilder);
assertEquals("-", strBuilder.toString());
}
Aggregations