You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2011/01/03 16:38:55 UTC
svn commit: r1054658 - in /oodt/trunk: CHANGES.txt
filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/Product.java
filemgr/src/test/org/apache/oodt/cas/filemgr/structs/TestProduct.java
Author: mattmann
Date: Mon Jan 3 15:38:55 2011
New Revision: 1054658
URL: http://svn.apache.org/viewvc?rev=1054658&view=rev
Log:
- fix for OODT-41 Product Constructor does not set transfer status
Modified:
oodt/trunk/CHANGES.txt
oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/Product.java
oodt/trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/TestProduct.java
Modified: oodt/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/oodt/trunk/CHANGES.txt?rev=1054658&r1=1054657&r2=1054658&view=diff
==============================================================================
--- oodt/trunk/CHANGES.txt (original)
+++ oodt/trunk/CHANGES.txt Mon Jan 3 15:38:55 2011
@@ -4,6 +4,8 @@ Apache OODT Change Log
Release 0.2 (Current Development)
--------------------------------------------
+* OODT-41 Product Constructor does not set transfer status (mattmann)
+
* OODT-72 Unable to set Metadata based off Product Versioning during
Product ingestion (mattmann, bfoster)
Modified: oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/Product.java
URL: http://svn.apache.org/viewvc/oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/Product.java?rev=1054658&r1=1054657&r2=1054658&view=diff
==============================================================================
--- oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/Product.java (original)
+++ oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/Product.java Mon Jan 3 15:38:55 2011
@@ -146,6 +146,7 @@ public class Product {
productType = pType;
productStructure = structure;
references = refs;
+ this.transferStatus = transferStatus;
}
/**
Modified: oodt/trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/TestProduct.java
URL: http://svn.apache.org/viewvc/oodt/trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/TestProduct.java?rev=1054658&r1=1054657&r2=1054658&view=diff
==============================================================================
--- oodt/trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/TestProduct.java (original)
+++ oodt/trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/TestProduct.java Mon Jan 3 15:38:55 2011
@@ -25,6 +25,7 @@ import org.apache.oodt.commons.xml.XMLUt
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
+import java.util.Collections;
//Junit imports
import junit.framework.TestCase;
@@ -44,6 +45,16 @@ public class TestProduct extends TestCas
System.setProperty("org.apache.oodt.cas.filemgr.mime.type.repository",
new File("./src/main/resources/mime-types.xml").getAbsolutePath());
}
+
+ /**
+ * @since OODT-41
+ */
+ public void testSetTransferStatus() {
+ Product p = new Product("foo", new ProductType(), Product.STRUCTURE_FLAT,
+ Product.STATUS_TRANSFER, Collections.EMPTY_LIST);
+ assertNotNull(p);
+ assertEquals(p.getTransferStatus(), Product.STATUS_TRANSFER);
+ }
public void testReadWriteProductWithProductType() {
Product p = new Product();