/** * Creates and persists a new storage entity with a random name with the specified attributes. * * @param attributeName the attribute name. * @param attributeValue the attribute value. * * @return the newly created storage entity. */ public StorageEntity createStorageEntityWithAttributes(String attributeName, String attributeValue) { return createStorageEntity("StorageTest" + AbstractDaoTest.getRandomSuffix(), StoragePlatformEntity.S3, attributeName, attributeValue); }
/** * Creates and persists a new namespace entity. * * @return the newly created namespace entity. */ public NamespaceEntity createNamespaceEntity() { return createNamespaceEntity("NamespaceTest" + AbstractDaoTest.getRandomSuffix()); }
/** * Creates and persists a new file type entity. * * @return the newly created file type entity. */ public FileTypeEntity createFileTypeEntity() { String randomNumber = AbstractDaoTest.getRandomSuffix(); return createFileTypeEntity("FileType" + randomNumber, "File Type " + randomNumber); }
/** * Creates and persists a new data provider entity. * * @return the newly created data provider entity. */ public DataProviderEntity createDataProviderEntity() { return createDataProviderEntity("DataProviderTest" + AbstractDaoTest.getRandomSuffix()); } }
/** * Creates and persists a new storage entity with a random name and no attributes. * * @return the newly created storage entity. */ public StorageEntity createStorageEntity() { return createStorageEntity("StorageTest" + AbstractDaoTest.getRandomSuffix()); }
/** * Creates and persists a new business object definition. * * @return the newly created business object definition. */ public BusinessObjectDefinitionEntity createBusinessObjectDefinition() { String businessObjectDefinitionName = "BusObjDefTest" + AbstractDaoTest.getRandomSuffix(); BusinessObjectDefinitionEntity businessObjectDefinitionEntity = new BusinessObjectDefinitionEntity(); businessObjectDefinitionEntity.setNamespace(namespaceDaoTestHelper.createNamespaceEntity()); businessObjectDefinitionEntity.setDataProvider(dataProviderDaoTestHelper.createDataProviderEntity()); businessObjectDefinitionEntity.setName(businessObjectDefinitionName); businessObjectDefinitionEntity.setDescription("test"); return businessObjectDefinitionDao.saveAndRefresh(businessObjectDefinitionEntity); }