use of org.opennms.netmgt.bsm.service.BusinessServiceSearchCriteriaBuilder in project opennms by OpenNMS.
the class BusinessServiceCriteriaTest method testOrderBySeverityDescAndLimit.
@Test
public void testOrderBySeverityDescAndLimit() {
BusinessServiceSearchCriteriaBuilder b = new BusinessServiceSearchCriteriaBuilder().order(BusinessServiceSearchCriteriaBuilder.Order.Severity).desc().limit(5);
assertEquals(ImmutableList.<BusinessService>builder().add(bs7, bs6, bs5, bs4, bs3).build(), businessServiceManager.search(b));
}
Aggregations