@Config("hive_default")
public class TestPartitionDimensionPersistence extends HiveTest {
@Test
public void testCreate() throws Exception {
PartitionDimensionDao dao = new PartitionDimensionDao(getDataSource(getConnectString(getHiveDatabaseName())));
int initialSize = dao.loadAll().size();
final PartitionDimension d = new PartitionDimension(Hive.NEW_OBJECT_ID, getHive().getPartitionDimension().getName(), Types.INTEGER, getConnectString(getHiveDatabaseName()), new ArrayList<Resource>());
dao.create(d);
assertTrue(d.getId() > 0);
assertEquals(initialSize + 1, dao.loadAll().size());
}