@Test public void testCreateDownloaderOutputManifestDtoAssertOutputAttributesSetWhenBdataAttributesSet() { BusinessObjectData businessObjectData = new BusinessObjectData(); businessObjectData.setAttributes(new ArrayList<>()); businessObjectData.getAttributes().add(new Attribute("name", "value")); StorageUnit storageUnit = new StorageUnit(new Storage("storageName", null, null), null, null, StorageUnitStatusEntity.ENABLED, null, null, null); String s3KeyPrefix = "s3KeyPrefix"; DownloaderOutputManifestDto actual = downloaderController.createDownloaderOutputManifestDto(businessObjectData, storageUnit, s3KeyPrefix); assertEquals(1, actual.getAttributes().size()); assertEquals("value", actual.getAttributes().get("name")); }
businessObjectData.setAttributes(attributeList);
businessObjectData.setAttributes(attributeList);
businessObjectData.setPartitionValue("2014-01-31"); businessObjectData.setPartitionKey("PROCESS_DATE"); businessObjectData.setAttributes(new ArrayList<Attribute>()); businessObjectData.setBusinessObjectFormatVersion(0); businessObjectData.setLatestVersion(true);
businessObjectData.setAttributes(attributes);
businessObjectData.setAttributes(attributes);
expectedBusinessObjectData.setStatus(BusinessObjectDataStatusEntity.VALID); expectedBusinessObjectData.setStorageUnits(Collections.singletonList(expectedStorageUnit)); expectedBusinessObjectData.setAttributes(new ArrayList<>()); expectedBusinessObjectData.setBusinessObjectDataParents(new ArrayList<>()); expectedBusinessObjectData.setBusinessObjectDataChildren(new ArrayList<>());
expectedBusinessObjectData.setStatus(BusinessObjectDataStatusEntity.VALID); expectedBusinessObjectData.setStorageUnits(Collections.singletonList(expectedStorageUnit)); expectedBusinessObjectData.setAttributes(new ArrayList<>()); expectedBusinessObjectData.setBusinessObjectDataParents(new ArrayList<>()); expectedBusinessObjectData.setBusinessObjectDataChildren(new ArrayList<>());
expectedBusinessObjectData.setStatus(BusinessObjectDataStatusEntity.VALID); expectedBusinessObjectData.setStorageUnits(Collections.singletonList(expectedStorageUnit)); expectedBusinessObjectData.setAttributes(new ArrayList<>()); expectedBusinessObjectData.setBusinessObjectDataParents(new ArrayList<>()); expectedBusinessObjectData.setBusinessObjectDataChildren(new ArrayList<>());
copy.attributes = null; if (copyAttributes!= null) { copy.setAttributes(copyAttributes);
copy.attributes = null; if (copyAttributes!= null) { copy.setAttributes(copyAttributes);
copy.attributes = null; if (copyAttributes!= null) { copy.setAttributes(copyAttributes);