Search in sources :

Example 1 with ScenarioService

use of org.finos.waltz.service.scenario.ScenarioService in project waltz by khartec.

the class ScenarioHarness method main.

public static void main(String[] args) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
    ScenarioService scenarioService = ctx.getBean(ScenarioService.class);
    ScenarioAxisItemDao scenarioAxisItemDao = ctx.getBean(ScenarioAxisItemDao.class);
    int[] result = scenarioAxisItemDao.reorder(22L, AxisOrientation.ROW, newArrayList(118L, 161L));
    System.out.println(Arrays.toString(result));
}
Also used : AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) ScenarioAxisItemDao(org.finos.waltz.data.scenario.ScenarioAxisItemDao) ScenarioService(org.finos.waltz.service.scenario.ScenarioService)

Aggregations

ScenarioAxisItemDao (org.finos.waltz.data.scenario.ScenarioAxisItemDao)1 ScenarioService (org.finos.waltz.service.scenario.ScenarioService)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1