use of org.opennms.netmgt.measurements.model.QueryResponse in project opennms by OpenNMS.
the class GraphMLVertexStatusProviderIT method before.
@Before
public void before() {
BeanUtils.assertAutowiring(this);
this.databasePopulator.populateDatabase();
this.serviceAccessor = new GraphMLServiceAccessor();
this.serviceAccessor.setTransactionOperations(this.transactionOperations);
this.serviceAccessor.setNodeDao(this.nodeDao);
this.serviceAccessor.setSnmpInterfaceDao(this.snmpInterfaceDao);
this.serviceAccessor.setMeasurementsService(request -> new QueryResponse());
this.alarmSummaryWrapper = nodeIds -> Lists.newArrayList(createSummary(1, "North", OnmsSeverity.WARNING, 1), createSummary(2, "West", OnmsSeverity.MINOR, 2), createSummary(3, "South", OnmsSeverity.MAJOR, 3), createSummary(4, "West 2", OnmsSeverity.MAJOR, 4), createSummary(5, "East 1", OnmsSeverity.CRITICAL, 5), createSummary(6, "East 2", OnmsSeverity.WARNING, 6));
}
Aggregations