use of com.khartec.waltz.service.complexity.ServerComplexityService in project waltz by khartec.
the class ServerComplexityHarness method main.
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
DSLContext dsl = ctx.getBean(DSLContext.class);
OrganisationalUnitDao ouDao = ctx.getBean(OrganisationalUnitDao.class);
ServerComplexityService serverService = ctx.getBean(ServerComplexityService.class);
ComplexityRatingService complexityService = ctx.getBean(ComplexityRatingService.class);
// EntityReference entityReference = EntityReference.mkRef(EntityKind.PERSON, 1);
EntityReference entityReference = EntityReference.mkRef(EntityKind.PERSON, 63);
List<ComplexityRating> complexity = FunctionUtilities.time("complexity", () -> complexityService.findForAppIdSelector(IdSelectionOptions.mkOpts(entityReference, HierarchyQueryScope.CHILDREN)));
}
Aggregations