[ 
https://issues.apache.org/jira/browse/OODT-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Foster updated OODT-353:
------------------------------

    Attachment: OODT-353.2011-11-19(2).patch.txt

Attached patch with updates:
 - Product rootRef was getting lost in serialization
 - Add a MockCatalog and MockCatalogFactory for use in unit-tests
 - Add unit-tests which tests Product serialization and deserialization via 
ingestProduct and getProductById
                
> getXmlRpcProduct and getProductFromXmlRpc should allow null values for 
> product member variables since Product is just a carrier object
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OODT-353
>                 URL: https://issues.apache.org/jira/browse/OODT-353
>             Project: OODT
>          Issue Type: Bug
>          Components: file manager
>    Affects Versions: 0.3
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Brian Foster
>            Priority: Minor
>             Fix For: 0.4
>
>         Attachments: OODT-353.2011-11-19(2).patch.txt, 
> OODT-353.2011-11-19.patch.txt
>
>
> The following should not have to happen (take from line 1753 of 
> XmlRpcFileManagerClient):
> {code}
> Product product = new Product();
> product.setProductName(" ");
> product.setProductStructure(" ");
> product.setProductType(client.getProductTypeByName(productTypeName));
> product.setProductId(productId);
> {code}
> The following should work:
> {code}
> Product product = new Product();
> product.setProductType(client.getProductTypeByName(productTypeName));
> product.setProductId(productId);
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to