Author: jawi
Date: Fri Aug 10 12:01:07 2012
New Revision: 1371672

URL: http://svn.apache.org/viewvc?rev=1371672&view=rev
Log:
Fixed failing unit test. When the bundle store is given a non-existing file, it 
yields null, no longer an exception.

Modified:
    
ace/sandbox/marrs/org.apache.ace.obr.storage/test/org/apache/ace/obr/storage/file/BundleFileStoreTest.java

Modified: 
ace/sandbox/marrs/org.apache.ace.obr.storage/test/org/apache/ace/obr/storage/file/BundleFileStoreTest.java
URL: 
http://svn.apache.org/viewvc/ace/sandbox/marrs/org.apache.ace.obr.storage/test/org/apache/ace/obr/storage/file/BundleFileStoreTest.java?rev=1371672&r1=1371671&r2=1371672&view=diff
==============================================================================
--- 
ace/sandbox/marrs/org.apache.ace.obr.storage/test/org/apache/ace/obr/storage/file/BundleFileStoreTest.java
 (original)
+++ 
ace/sandbox/marrs/org.apache.ace.obr.storage/test/org/apache/ace/obr/storage/file/BundleFileStoreTest.java
 Fri Aug 10 12:01:07 2012
@@ -95,18 +95,11 @@ public class BundleFileStoreTest {
     }
 
     /**
-     * Test whether the metadata is generated when getting a bundle from the 
repository.
+     * Test that the bundle store reutrns null for non-existing files.
      */
     @Test(groups = { UNIT })
-    public void getUnexistingBundle() throws Exception {
-        try {
-            m_bundleStore.get("blaat");
-        }
-        catch (IOException e) {
-            // exception is expected
-            return;
-        }
-        assert false : "Getting an unexisting file did not result in an 
exception";
+    public void getNonExistingBundle() throws Exception {
+       assert m_bundleStore.get("blaat") == null : "Getting an non-existing 
file did not result in null?";
     }
 
     /**


Reply via email to