use of com.yahoo.jdisc.service.CurrentContainer in project vespa by vespa-engine.
the class HttpRequestTestCase method mockContainer.
private static CurrentContainer mockContainer() {
final CurrentContainer currentContainer = mock(CurrentContainer.class);
when(currentContainer.newReference(any(URI.class))).thenReturn(mock(Container.class));
return currentContainer;
}
use of com.yahoo.jdisc.service.CurrentContainer in project vespa by vespa-engine.
the class EmptyRequestFilterTestCase method newRequest.
private static HttpRequest newRequest(final Method method, final String uri, final Version version) {
final CurrentContainer currentContainer = mock(CurrentContainer.class);
when(currentContainer.newReference(any(URI.class))).thenReturn(mock(Container.class));
return HttpRequest.newServerRequest(currentContainer, URI.create(uri), method, version);
}
Aggregations