Verify { public static boolean hasAutoIncrementColumn(final TableSchema schema) { return schema.getAutoIncrementColumn() != null; }  static boolean hasAutoIncrementColumn(final TableSchema schema); static void isValidId(final long id, final String... message); static void isNotNullOrEmpty(final String value, final String... message); static void isValidTableSchema(final TableSchema schema); static void isValidIndexSchema(final Collection<IndexSchema> indices,
                                          final Collection<ColumnSchema> columns);  }
@Test public void testHasAutoIncrementColumn() { final List<ColumnSchema> columns = ImmutableList.<ColumnSchema>of( ColumnSchema.builder(COLUMN_B, ColumnType.LONG).setIsAutoIncrement(true).build()); final TableSchema tableSchema = new TableSchema(columns, ImmutableList.<IndexSchema>of()); Verify.hasAutoIncrementColumn(tableSchema); }
@Test public void testHasAutoIncrementColumnNotAutoInc() { final List<ColumnSchema> columns = ImmutableList.<ColumnSchema>of( ColumnSchema.builder(COLUMN_B, ColumnType.LONG).setIsAutoIncrement(false).build()); final TableSchema tableSchema = new TableSchema(columns, ImmutableList.<IndexSchema>of()); Verify.hasAutoIncrementColumn(tableSchema); }