299300301302303304305
*/ public DataStreamSource<Long> generateSequence(long from, long to) { if (from > to) { throw new IllegalArgumentException("Start of sequence must not be greater than the end"); } return addSource(new GenSequenceFunction(from, to), 1); }
4445464748495051
} @Test public void genSequenceTest() { List<Long> expectedList = Arrays.asList(1L, 2L, 3L); List<Long> actualList = MockSource.createAndExecute(new GenSequenceFunction(1, 3)); assertEquals(expectedList, actualList); }