transactionallyUnchecked(new Runnable() {
@Override
public void run() {
Collection<ChangeSet> changeSets = schemaManager.getOnlineChangeSets(session());
assertEquals("changeSets size", 1, changeSets.size());
ChangeSet cs = changeSets.iterator().next();
assertEquals("changeLevel", "TABLE", cs.getChangeLevel());
assertEquals("tableId", tid, cs.getTableId());
assertEquals("oldSchema", "s1", cs.getOldSchema());
assertEquals("oldName", "n1", cs.getOldName());
assertEquals("newSchema", "s2", cs.getNewSchema());
assertEquals("newName", "n2", cs.getNewName());
assertEquals("columnChangeCount", 1, cs.getColumnChangeCount());
assertEquals("columnChange type", "ADD", cs.getColumnChange(0).getChangeType());
assertEquals("columnChange newName", "nn", cs.getColumnChange(0).getNewName());
assertEquals("indexChangeCount", 1, cs.getIndexChangeCount());
assertEquals("indexChange index type", "GROUP", cs.getIndexChange(0).getIndexType());
assertEquals("indexChange change type", "DROP", cs.getIndexChange(0).getChange().getChangeType());
assertEquals("indexChange oldName", "on", cs.getIndexChange(0).getChange().getOldName());
}
});
transactionallyUnchecked(new Runnable() {
@Override