protected ColumnSchemaModel buildTestModel() { ColumnSchemaModel model = new ColumnSchemaModel(); model.setName(COLUMN_NAME); model.__setBlocksize(BLOCKSIZE); model.__setBloomfilter(BLOOMFILTER); model.__setBlockcache(BLOCKCACHE); model.__setCompression(COMPRESSION); model.__setVersions(VERSIONS); model.__setTTL(TTL); model.__setInMemory(IN_MEMORY); return model; }
protected void checkModel(ColumnSchemaModel model) { assertEquals(model.getName(), COLUMN_NAME); assertEquals(model.__getBlockcache(), BLOCKCACHE); assertEquals(model.__getBlocksize(), BLOCKSIZE); assertEquals(model.__getBloomfilter(), BLOOMFILTER); assertTrue(model.__getCompression().equalsIgnoreCase(COMPRESSION)); assertEquals(model.__getInMemory(), IN_MEMORY); assertEquals(model.__getTTL(), TTL); assertEquals(model.__getVersions(), VERSIONS); }