use of org.nhindirect.monitor.dao.entity.AggregationCompleted in project nhin-d by DirectProject.
the class AggregationDAOImpl_getAggregationCompletedTest method testGetAggregationCompleted_nonEmptyRepository_keyDoesntExist_assertNoAggregation.
@Test
public void testGetAggregationCompleted_nonEmptyRepository_keyDoesntExist_assertNoAggregation() throws Exception {
final Aggregation insert = new Aggregation();
insert.setExchangeBlob(new byte[] { 0, 3, 2 });
insert.setId("12345");
insert.setVersion(0);
notifDao.addUpdateAggregation(insert);
assertNotNull(notifDao.getAggregation("12345"));
final Aggregation remove = new Aggregation();
remove.setExchangeBlob(new byte[] { 0, 3, 2 });
remove.setId("12345");
remove.setVersion(1);
notifDao.removeAggregation(remove, "12345");
final AggregationCompleted aggr = notifDao.getAggregationCompleted("doenst matter", true);
assertNull(aggr);
}
Aggregations