IntSequenceDataPool extends DataPoolConfiguration { public IntSequenceDataPool() { super(); } IntSequenceDataPool(); DynamicValue<Integer> getStart(); void setStart(DynamicValue<Integer> start); DynamicValue<Integer> getEnd(); void setEnd(DynamicValue<Integer> end); DynamicValue<Integer> getInc(); void setInc(DynamicValue<Integer> inc);  }
@Test public void testIntSequenceDataPool() { int nbIncrementsWanted = 3; int maxIntWanted = 10; IntSequenceDataPool poolConf = new IntSequenceDataPool(); poolConf.setStart(new DynamicValue<Integer>(1)); poolConf.setEnd(new DynamicValue<Integer>(maxIntWanted)); poolConf.setInc(new DynamicValue<Integer>(1)); DataSet<?> pool = DataPoolFactory.getDataPool("sequence", poolConf, newExecutionContext()); pool.init(); Integer value = incrementNtimes(pool, nbIncrementsWanted); pool.close(); Assert.assertEquals(nbIncrementsWanted, value.intValue()); }