use of com.vaadin.flow.function.ContentTypeResolver in project flow by vaadin.
the class StreamResourceTest method getDefaultContentTypeResolver.
@Test
public void getDefaultContentTypeResolver() {
StreamResource resource = new StreamResource("foo", () -> makeEmptyStream());
ContentTypeResolver resolver = resource.getContentTypeResolver();
Assert.assertNotNull(resolver);
assertContentType(resource, resolver);
}
Aggregations