List<BusinessObjectDataStorageUnitKey> storageUnitKeys = relationalTableRegistrationService.getRelationalTableRegistrationsForSchemaUpdate();
List<BusinessObjectDataStorageUnitKey> storageUnitKeys = relationalTableRegistrationService.getRelationalTableRegistrationsForSchemaUpdate();
@Test public void testGetRelationalTableRegistrationsForSchemaUpdate() { // Create a storage unit entity for a relational table registration. StorageUnitEntity storageUnitEntity = storageUnitDaoTestHelper.createStorageUnitEntity(STORAGE_NAME, StoragePlatformEntity.RELATIONAL, new BusinessObjectDataKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FileTypeEntity.RELATIONAL_TABLE_FILE_TYPE, INITIAL_FORMAT_VERSION, BusinessObjectDataServiceImpl.NO_PARTITIONING_PARTITION_VALUE, NO_SUBPARTITION_VALUES, INITIAL_DATA_VERSION), AbstractDaoTest.LATEST_VERSION_FLAG_SET, BusinessObjectDataStatusEntity.VALID, StorageUnitStatusEntity.ENABLED, AbstractDaoTest.NO_STORAGE_DIRECTORY_PATH); // Get a list of relational table registrations for the schema update.. List<BusinessObjectDataStorageUnitKey> result = relationalTableRegistrationService.getRelationalTableRegistrationsForSchemaUpdate(); // Validate the results. assertEquals(Collections.singletonList(storageUnitHelper.createStorageUnitKeyFromEntity(storageUnitEntity)), result); }
relationalTableRegistrationServiceImpl.getRelationalTableRegistrationsForSchemaUpdate();