use of com.canoo.dp.impl.server.config.ServerConfiguration in project dolphin-platform by canoo.
the class CrossSiteOriginFilterTest method testCommaSeparatedList.
@Test(expectedExceptions = NullPointerException.class)
public void testCommaSeparatedList() {
final CrossSiteOriginFilter crossSiteOriginFilter = new CrossSiteOriginFilter(new ServerConfiguration());
crossSiteOriginFilter.getAsCommaSeparatedList(null);
}
use of com.canoo.dp.impl.server.config.ServerConfiguration in project dolphin-platform by canoo.
the class DolphinDefaultPlatformConfigurationTest method testDefaultConfiguration.
@Test
public void testDefaultConfiguration() {
// given:
final ServerConfiguration configuration = new ServerConfiguration();
// then:
Assert.assertEquals(configuration.getBooleanProperty(USE_CROSS_SITE_ORIGIN_FILTER, USE_CROSS_SITE_ORIGIN_FILTER_DEFAULT_VALUE), true);
}
Aggregations