use of jakarta.ws.rs.core.UriInfo in project OpenGrok by OpenGrok.
the class IncomingFilterTest method mockContainerRequestContext.
private ContainerRequestContext mockContainerRequestContext(final String path) {
ContainerRequestContext context = mock(ContainerRequestContext.class);
UriInfo info = mock(UriInfo.class);
when(info.getPath()).thenReturn(path);
when(context.getUriInfo()).thenReturn(info);
return context;
}
Aggregations