Search in sources :

Example 6 with AggregateStatusView

use of org.opennms.netmgt.model.AggregateStatusView in project opennms by OpenNMS.

the class DefaultSiteStatusServiceIT method testCreateAggregateStatusView.

@Test
@Transactional
public void testCreateAggregateStatusView() {
    m_databasePopulator.populateDatabase();
    AggregateStatusView view = m_aggregateService.createAggregateStatusView(null);
    assertNotNull(view);
    assertFalse(view.getStatusDefinitions().isEmpty());
    m_databasePopulator.resetDatabase();
}
Also used : AggregateStatusView(org.opennms.netmgt.model.AggregateStatusView) Test(org.junit.Test) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

AggregateStatusView (org.opennms.netmgt.model.AggregateStatusView)6 AggregateStatus (org.opennms.web.svclayer.model.AggregateStatus)4 Test (org.junit.Test)3 AggregateStatusDefinition (org.opennms.netmgt.model.AggregateStatusDefinition)3 ArrayList (java.util.ArrayList)2 LinkedHashSet (java.util.LinkedHashSet)2 OnmsCategory (org.opennms.netmgt.model.OnmsCategory)2 Transactional (org.springframework.transaction.annotation.Transactional)2 HashSet (java.util.HashSet)1 View (org.opennms.netmgt.config.siteStatusViews.View)1 OnmsNode (org.opennms.netmgt.model.OnmsNode)1 DataRetrievalFailureException (org.springframework.dao.DataRetrievalFailureException)1 ObjectRetrievalFailureException (org.springframework.orm.ObjectRetrievalFailureException)1 ModelAndView (org.springframework.web.servlet.ModelAndView)1