@Test public void testService_NullIdentity_Overflows() throws Exception { try { StaticIdentitySequenceNumberService service = createServiceForTests(); service.setResetStatement(NULL_RESET_STATEMENT); service.setInsertStatement(NULL_INSERT_STATEMENT); service.setUpdateStatement(NULL_UPDATE_STATEMENT); service.setSelectStatement(NULL_SELECT_STATEMENT); service.setIdentity(null); createDatabase(); populateDatabase("abc", 10000); AdaptrisMessage msg = createMessageForTests(); service.setNumberFormat("0000"); service.setOverflowBehaviour(AbstractJdbcSequenceNumberService.OverflowBehaviour.Continue); execute(service, msg); assertTrue(msg.containsKey(DEFAULT_METADATA_KEY)); assertEquals("10000", msg.getMetadataValue(DEFAULT_METADATA_KEY)); assertEquals(10001, getCurrentSequenceNumber("abc")); } finally { } }
public void setIdentity(String id) { identity = id; }
StaticIdentitySequenceNumberService extends AbstractJdbcSequenceNumberService { public void setIdentity(String id) { identity = id; } }
StaticIdentitySequenceNumberService extends AbstractJdbcSequenceNumberService { public void setIdentity(String id) { identity = id; }  }
StaticIdentitySequenceNumberService extends AbstractJdbcSequenceNumberService { public void setIdentity(String id) { identity = id; }  String getIdentity(); void setIdentity(String id); }
StaticIdentitySequenceNumberService extends AbstractJdbcSequenceNumberService { public void setIdentity(String id) { identity = id; }  String getIdentity(); void setIdentity(String id);  }