@Test public void testService_NullIdentity_SelectUpdate() throws Exception { try { StaticIdentitySequenceNumberService service = createServiceForTests(); service.setIdentity(null); service.setResetStatement(NULL_RESET_STATEMENT); service.setInsertStatement(NULL_INSERT_STATEMENT); service.setUpdateStatement(NULL_UPDATE_STATEMENT); service.setSelectStatement(NULL_SELECT_STATEMENT); createDatabase(); populateDatabase("abc", 15); AdaptrisMessage msg = createMessageForTests(); execute(service, msg); assertTrue(msg.containsKey(DEFAULT_METADATA_KEY)); assertEquals("000000015", msg.getMetadataValue(DEFAULT_METADATA_KEY)); assertEquals(16, 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);  }