Search in sources :

Example 11 with JavaScriptConfig

use of io.druid.js.JavaScriptConfig in project druid by druid-io.

the class JavaScriptModuleTest method testInjectionEnabled.

@Test
public void testInjectionEnabled() throws Exception {
    final Properties props = new Properties();
    props.setProperty("druid.javascript.enabled", "true");
    JavaScriptConfig config = makeInjectorWithProperties(props).getInstance(JavaScriptConfig.class);
    Assert.assertTrue(config.isEnabled());
}
Also used : JavaScriptConfig(io.druid.js.JavaScriptConfig) Properties(java.util.Properties) Test(org.junit.Test)

Aggregations

JavaScriptConfig (io.druid.js.JavaScriptConfig)11 Test (org.junit.Test)11 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 DefaultObjectMapper (io.druid.jackson.DefaultObjectMapper)2 Properties (java.util.Properties)2