use of vwap.Bargain in project streamsx.topology by IBMStreams.
the class VwapTest method testVwap.
@Test
public void testVwap() throws Exception {
// Invokes an SPL operator so cannot run in embedded.
assumeSPLOk();
TStream<Bargain> bargains = Vwap.createVwapTopology();
bargains = Vwap.realBargains(bargains);
Topology topology = bargains.topology();
Tester tester = topology.getTester();
Condition<Long> expectedCount = tester.atLeastTupleCount(bargains, 2200);
complete(tester, expectedCount, 120, TimeUnit.SECONDS);
assertTrue(expectedCount.toString(), expectedCount.valid());
}
Aggregations