use of io.knotx.server.configuration.KnotxFlowConfiguration 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);
}
Aggregations