@Test public void testGetNextNamed() { incrementer.setKey("foo"); JobParameters next = incrementer.getNext(null); assertEquals(1, next.getLong("foo").intValue()); }
@Test public void testGetNextAppends() { JobParameters next = incrementer.getNext(new JobParametersBuilder().addString("foo", "bar").toJobParameters()); assertEquals(1, next.getLong("run.id").intValue()); assertEquals("bar", next.getString("foo")); }