DatabusStreamConsumer mockConsumer =
new EventCountingConsumer(
new StateVerifyingStreamConsumer(
new DataSourceFailingStreamConsumer("source2")),
keyCounts, srcidCounts);
SelectingDatabusCombinedConsumer sdccMockConsumer = new SelectingDatabusCombinedConsumer(mockConsumer);
Hashtable<Long, AtomicInteger> keyCounts2 = new Hashtable<Long, AtomicInteger>();
Hashtable<Short, AtomicInteger> srcidCounts2 = new Hashtable<Short, AtomicInteger>();
for (Long key: keyCounts.keySet())
{
keyCounts2.put(key, new AtomicInteger(0));
}
for (Short srcid: srcidCounts.keySet())
{
srcidCounts2.put(srcid, new AtomicInteger(0));
}
DatabusStreamConsumer mockConsumer2 =
new EventCountingConsumer(new StateVerifyingStreamConsumer(null),
keyCounts2, srcidCounts2);
SelectingDatabusCombinedConsumer sdccMockConsumer2 = new SelectingDatabusCombinedConsumer(mockConsumer2);
List<String> sources = new ArrayList<String>();
Map<Long, IdNamePair> sourcesMap = new HashMap<Long, IdNamePair>();
for (int i = 1; i <= 3; ++i)
{