JDBCUtil jdbcUtil = JDBCUtil.getInstance();
assertNotNull( jdbcUtil );
}
public void testGenerateKey() {
JDBCUtil jdbcUtil = JDBCUtil.getInstance();
int nextKey = 0;
int previousKey = jdbcUtil.generateKey();
for( int i = 0; i < 10; i++ ) {
nextKey = jdbcUtil.generateKey();
assertTrue( (previousKey + 1) == nextKey );
previousKey = nextKey;
}