[java-opensaml COMMIT] /trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/MemoryStorageServiceTest....

noreply at shibboleth.net noreply at shibboleth.net
Fri Oct 11 11:40:25 EDT 2013


Author: scantor
Date: Fri Oct 11 11:40:24 2013
New Revision: 3467

URL: http://svn.shibboleth.net/view/java-opensaml?rev=3467&view=rev
Log:
Fix unit test.

Modified:
    trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/MemoryStorageServiceTest.java

Modified: trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/MemoryStorageServiceTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/MemoryStorageServiceTest.java?rev=3467&r1=3466&r2=3467&view=diff
==============================================================================
--- trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/MemoryStorageServiceTest.java (original)
+++ trunk/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/MemoryStorageServiceTest.java Fri Oct 11 11:40:24 2013
@@ -17,8 +17,6 @@
 
 package org.opensaml.storage.impl;
 
-import java.util.Timer;
-
 import javax.annotation.Nonnull;
 
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
@@ -26,7 +24,6 @@
 import org.opensaml.storage.StorageService;
 import org.opensaml.storage.StorageServiceTest;
 import org.opensaml.storage.impl.MemoryStorageService;
-import org.testng.Assert;
 import org.testng.annotations.Test;
 
 /**
@@ -38,25 +35,9 @@
     @Nonnull protected StorageService getStorageService() {
         MemoryStorageService ss = new MemoryStorageService();
         ss.setCleanupInterval(1);
-        ss.setCleanupTaskTimer(new Timer());
         return ss;
     }
         
-    @Test
-    public void invalidConfig() {
-        MemoryStorageService ss = new MemoryStorageService();
-        ss.setCleanupInterval(1);
-        
-        try {
-            ss.initialize();
-            Assert.fail("Storage service should have failed to initialize");
-        } catch (ComponentInitializationException e) {
-            // expected
-        }
-        
-        ss.destroy();
-    }
-    
     @Test
     public void validConfig() throws ComponentInitializationException {
         MemoryStorageService ss = new MemoryStorageService();



More information about the commits mailing list