@Test(expected=DuplicateIndexIdException.class) public void dupSameTable() { AkibanInformationSchema ais = AISBBasedBuilder .create("test", typesTranslator) .table("p").colInt("id").key("k1", "id").key("k2", "id") .unvalidatedAIS(); ais.getTable("test", "p").getIndex("k1").setIndexId(10); ais.getTable("test", "p").getIndex("k2").setIndexId(10); validate(ais); }
@Override public void validate(AkibanInformationSchema ais, AISValidationOutput output) { ais.visit(new IndexIDVisitor(output)); }
IndexIDValidation implements AISValidation { @Override public void validate(AkibanInformationSchema ais, AISValidationOutput output) { ais.visit(new IndexIDVisitor(output)); } }
IndexIDValidation implements AISValidation { @Override public void validate(AkibanInformationSchema ais, AISValidationOutput output) { ais.visit(new IndexIDVisitor(output)); }  }
IndexIDValidation implements AISValidation { @Override public void validate(AkibanInformationSchema ais, AISValidationOutput output) { ais.visit(new IndexIDVisitor(output)); }  @Override void validate(AkibanInformationSchema ais, AISValidationOutput output); }
IndexIDValidation implements AISValidation { @Override public void validate(AkibanInformationSchema ais, AISValidationOutput output) { ais.visit(new IndexIDVisitor(output)); }  @Override void validate(AkibanInformationSchema ais, AISValidationOutput output);  }