@Test public void testService_NullIdentity_Insert() throws Exception { try { createDatabase(); AdaptrisMessage msg = createMessageForTests(); 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); service.setAlwaysReplaceMetadata(true); execute(service, msg); assertTrue(msg.containsKey(DEFAULT_METADATA_KEY)); assertEquals("000000001", msg.getMetadataValue(DEFAULT_METADATA_KEY)); assertEquals(2, 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);  }