use of io.dropwizard.jetty.ServerPushFilterFactory in project dropwizard by dropwizard.
the class DefaultServerFactoryTest method loadsServerPushConfig.
@Test
public void loadsServerPushConfig() throws Exception {
final ServerPushFilterFactory serverPush = http.getServerPush();
assertThat(serverPush.isEnabled()).isTrue();
assertThat(serverPush.getRefererHosts()).contains("dropwizard.io");
assertThat(serverPush.getRefererPorts()).contains(8445);
}
Aggregations