use of com.khartec.waltz.data.EntityReferenceNameResolver in project waltz by khartec.
the class EntityRefHarness method main.
public static void main(String[] args) {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
EntityReferenceNameResolver resolver = ctx.getBean(EntityReferenceNameResolver.class);
List<EntityReference> refs = ListUtilities.newArrayList(EntityReference.mkRef(EntityKind.MEASURABLE, 136), EntityReference.mkRef(EntityKind.MEASURABLE, 138), EntityReference.mkRef(EntityKind.MEASURABLE, -138), EntityReference.mkRef(EntityKind.CHANGE_INITIATIVE, 12));
List<EntityReference> refs1 = ListUtilities.newArrayList(EntityReference.mkRef(EntityKind.MEASURABLE, 136));
dump(resolver.resolve(refs));
dump(resolver.resolve(refs1));
System.out.println("-- done");
}
Aggregations