@Test public void pollIntervalMustBeGreaterThanZero() { // given this.expectedException.expect(IllegalArgumentException.class); this.expectedException.expectMessage("The poll interval must be greater than zero"); // when new RemotePartitioningMasterStepBuilder("step").pollInterval(-1); // then // expected exception }
.partitioner("workerStep", partitioner) .gridSize(gridSize) .pollInterval(pollInterval) .timeout(timeout) .startLimit(startLimit)