Search in sources :

Example 11 with ServerConfiguration

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);
}
Also used : CrossSiteOriginFilter(com.canoo.dp.impl.server.servlet.CrossSiteOriginFilter) ServerConfiguration(com.canoo.dp.impl.server.config.ServerConfiguration) Test(org.testng.annotations.Test)

Example 12 with ServerConfiguration

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);
}
Also used : ServerConfiguration(com.canoo.dp.impl.server.config.ServerConfiguration) Test(org.testng.annotations.Test)

Aggregations

ServerConfiguration (com.canoo.dp.impl.server.config.ServerConfiguration)12 Test (org.testng.annotations.Test)10 PlatformBootstrap (com.canoo.dp.impl.server.bootstrap.PlatformBootstrap)2 CrossSiteOriginFilter (com.canoo.dp.impl.server.servlet.CrossSiteOriginFilter)2 RemotingConfiguration (com.canoo.dp.impl.server.config.RemotingConfiguration)1 DefaultClasspathScanner (com.canoo.dp.impl.server.scanner.DefaultClasspathScanner)1 DocumentAnnotatedClass (com.canoo.impl.server.classpathscan.documented.DocumentAnnotatedClass)1 AnnotatedClassForClasspathScan (com.canoo.impl.server.util.AnnotatedClassForClasspathScan)1 AnnotationForClasspathScanTest (com.canoo.impl.server.util.AnnotationForClasspathScanTest)1 Properties (java.util.Properties)1 Set (java.util.Set)1