/**
* testAllProcedures
*/
public void testAllProcedures() throws Exception {
for (Procedure proc0 : catalogContext.getRegularProcedures()) {
LocalTransaction txn0 = this.createTransaction(proc0);
Collection<Table> tables0 = CatalogUtil.getReferencedTables(proc0);
for (Table tbl : tables0) {
if (proc0.getReadonly()) {
txn0.markTableRead(BASE_PARTITION, tbl);
} else {
txn0.markTableWritten(BASE_PARTITION, tbl);
}
} // FOR
System.err.println(proc0.getName() + " -> " + tables0);
for (Procedure proc1 : catalogContext.getRegularProcedures()) {
LocalTransaction txn1 = this.createTransaction(proc1);
Collection<Table> tables1 = CatalogUtil.getReferencedTables(proc1);
for (Table tbl : tables1) {
if (proc1.getReadonly()) {
txn1.markTableRead(BASE_PARTITION, tbl);
} else {
txn1.markTableWritten(BASE_PARTITION, tbl);
}
} // FOR
// XXX: This test is not really useful because we're not actually
// trying to guess whether there is a conflict. We're just throwing