@Test public void noOrdinal() { AkibanInformationSchema ais = AISBBasedBuilder .create("test", typesTranslator) .table("p").colInt("id") .unvalidatedAIS(); ais.getTable("test", "p").setOrdinal(null); Collection<AISValidationFailure> failures = validate(ais); assertEquals("failures", 1, failures.size()); }
private static AISValidationException noOrdinal(Table t) { return new AISValidationException( String.format("Table %s has no ordinal", t.getName()) ); }
OrdinalOrdering implements AISValidation { private static AISValidationException noOrdinal(Table t) { return new AISValidationException( String.format("Table %s has no ordinal", t.getName()) ); } }
OrdinalOrdering implements AISValidation { private static AISValidationException noOrdinal(Table t) { return new AISValidationException( String.format("Table %s has no ordinal", t.getName()) ); }  }
OrdinalOrdering implements AISValidation { private static AISValidationException noOrdinal(Table t) { return new AISValidationException( String.format("Table %s has no ordinal", t.getName()) ); }  @Override void validate(AkibanInformationSchema ais, AISValidationOutput output); }
OrdinalOrdering implements AISValidation { private static AISValidationException noOrdinal(Table t) { return new AISValidationException( String.format("Table %s has no ordinal", t.getName()) ); }  @Override void validate(AkibanInformationSchema ais, AISValidationOutput output);  }