CriteriaManager implements Serializable { public Collection<CriterionCategory> getAllCriterionCategories() { return Collections.unmodifiableCollection(knownCategories.values()); } CriteriaManager(); Collection<CriterionCategory> getAllCriterionCategories(); @Lock(LockType.READ) Collection<Measure> getAllMeasures(); @Lock(LockType.READ) Collection<Attribute> getAllAttributes(); @Lock(LockType.READ) Measure getMeasure(String measureUri); @Lock(LockType.READ) Attribute getAttribute(String attributeUri); @Lock(LockType.READ) List<String> getCategoryHierachy(String measureUri); @Lock(LockType.WRITE) void reload(); @PostConstruct void init(); static final String MEASURES_FILE; static final String ATTRIBUTES_FILE; static final String CATEGORIES_FILE; }
@Test public void testDataCategoriesPresent() { Assert.assertFalse(criteriaManager.getAllCriterionCategories().isEmpty()); }