use of io.knotx.server.configuration.KnotxServerConfiguration in project knotx by Cognifide.
the class KnotxServerConfigurationRepositoriesTest method before.
@Before
public void before() throws Exception {
JsonObject config = new JsonObject(FileReader.readText("test-config-server.json"));
flowConfiguration = new KnotxServerConfiguration(config).getDefaultFlow();
}
use of io.knotx.server.configuration.KnotxServerConfiguration in project knotx by Cognifide.
the class SupportedMethodsAndPathsHandlerTest method before.
@Before
public void before() throws Exception {
defaultFlow = new KnotxFlowConfiguration(new JsonObject(FileReader.readText("GETOnlyDefaultFlow.json")));
customFlow = new KnotxFlowConfiguration(new JsonObject(FileReader.readText("GETOnlyCustomFlow.json")));
KnotxServerConfiguration configuration = Mockito.mock(KnotxServerConfiguration.class);
Mockito.when(configuration.getDefaultFlow()).thenReturn(defaultFlow);
Mockito.when(configuration.getCustomFlow()).thenReturn(customFlow);
tested = SupportedMethodsAndPathsHandler.create(configuration);
}
use of io.knotx.server.configuration.KnotxServerConfiguration in project knotx by Cognifide.
the class KnotxServerVerticle method init.
@Override
public void init(Vertx vertx, Context context) {
super.init(vertx, context);
configuration = new KnotxServerConfiguration(config());
}
Aggregations