public TableSchemaModel buildTestModel(String name) { TableSchemaModel model = new TableSchemaModel(); model.setName(name); model.__setIsMeta(IS_META); model.__setIsRoot(IS_ROOT); model.__setReadOnly(READONLY); model.addColumnFamily(testColumnSchemaModel.buildTestModel()); return model; }
public void checkModel(TableSchemaModel model, String tableName) { assertEquals(model.getName(), tableName); assertEquals(model.__getIsMeta(), IS_META); assertEquals(model.__getIsRoot(), IS_ROOT); assertEquals(model.__getReadOnly(), READONLY); Iterator<ColumnSchemaModel> families = model.getColumns().iterator(); assertTrue(families.hasNext()); ColumnSchemaModel family = families.next(); testColumnSchemaModel.checkModel(family); assertFalse(families.hasNext()); }