@Test public void checkPropertyCopy() { String propName = "propName"; String propValue = "propVal"; InvProperty prop = new InvProperty( propName, propValue ); InvProperty copyProp = DeepCopyUtils.copyProperty( prop ); assertFalse( prop == copyProp ); assertEquals( prop.getName(), copyProp.getName() ); assertEquals( prop.getValue(), copyProp.getValue() ); }
public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); }
DeepCopyUtils { public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } }
DeepCopyUtils { public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } private  DeepCopyUtils(); }
DeepCopyUtils { public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } private  DeepCopyUtils(); static InvCatalog copyCatalog( InvCatalog catalog ); static InvCatalog subsetCatalogOnDataset( InvCatalog catalog, String datasetId ); static InvCatalog subsetCatalogOnDataset( InvCatalog catalog, InvDataset dataset); static InvDataset copyDataset( InvDataset dataset, List<InvService> availableServices,
                                        boolean copyInheritedMetadataFromParents ); static InvAccess copyAccess( InvAccess access, InvDataset parentDataset, List<InvService> availableServices ); static InvService copyService( InvService service ); static InvProperty copyProperty( InvProperty property); }
DeepCopyUtils { public static InvProperty copyProperty( InvProperty property) { return new InvProperty( property.getName(), property.getValue()); } private  DeepCopyUtils(); static InvCatalog copyCatalog( InvCatalog catalog ); static InvCatalog subsetCatalogOnDataset( InvCatalog catalog, String datasetId ); static InvCatalog subsetCatalogOnDataset( InvCatalog catalog, InvDataset dataset); static InvDataset copyDataset( InvDataset dataset, List<InvService> availableServices,
                                        boolean copyInheritedMetadataFromParents ); static InvAccess copyAccess( InvAccess access, InvDataset parentDataset, List<InvService> availableServices ); static InvService copyService( InvService service ); static InvProperty copyProperty( InvProperty property);  }