Search in sources :

Example 16 with AggregationDAO

use of org.nhindirect.monitor.dao.AggregationDAO in project nhin-d by DirectProject.

the class TestNonCompletedToDSNGeneratorMonitorRoute method postProcessTest.

@Override
public void postProcessTest() throws Exception {
    super.postProcessTest();
    final AggregationDAO dao = (AggregationDAO) context.getRegistry().lookup("aggregationDAO");
    dao.purgeAll();
    assertEquals(0, dao.getAggregationKeys().size());
    assertEquals(0, dao.getAggregationCompletedKeys().size());
}
Also used : AggregationDAO(org.nhindirect.monitor.dao.AggregationDAO)

Example 17 with AggregationDAO

use of org.nhindirect.monitor.dao.AggregationDAO in project nhin-d by DirectProject.

the class TestNonReliableMessageMonitorRoute method postProcessTest.

@Override
public void postProcessTest() throws Exception {
    super.postProcessTest();
    final AggregationDAO dao = (AggregationDAO) context.getRegistry().lookup("aggregationDAO");
    dao.purgeAll();
    assertEquals(0, dao.getAggregationKeys().size());
    assertEquals(0, dao.getAggregationCompletedKeys().size());
}
Also used : AggregationDAO(org.nhindirect.monitor.dao.AggregationDAO)

Aggregations

AggregationDAO (org.nhindirect.monitor.dao.AggregationDAO)17 Test (org.junit.Test)9 ConcurrentJPAAggregationRepository (org.nhindirect.monitor.aggregator.repository.ConcurrentJPAAggregationRepository)9 Exchange (org.apache.camel.Exchange)2 DefaultExchange (org.apache.camel.impl.DefaultExchange)2 Tx (org.nhindirect.common.tx.model.Tx)2 MockEndpoint (org.apache.camel.component.mock.MockEndpoint)1