use of org.opennms.netmgt.bsm.persistence.api.functions.reduce.HighestSeverityAboveEntity in project opennms by OpenNMS.
the class AbstractBusinessServiceRestServiceIT method verifyHighestSeverityAboveReduceFunction.
@Test
public void verifyHighestSeverityAboveReduceFunction() throws Exception {
BusinessServiceEntity entity = new BusinessServiceEntityBuilder().name("Dummy Service").reduceFunction(new HighestSeverityAboveEntity(Status.CRITICAL.ordinal())).toEntity();
sendData(POST, getMediaType(), "/business-services", marshal(toRequestDto(entity)), 201);
entity.setId(findEntityByName("Dummy Service").getId());
verifyResponse(entity);
}
Aggregations