[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/nameid/StoredPersiste...

noreply at shibboleth.net noreply at shibboleth.net
Thu Mar 27 06:39:19 EDT 2014


Author: rdw
Date: Thu Mar 27 06:39:19 2014
New Revision: 5645

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5645&view=rev
Log:
More teardown after test

Modified:
    trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/nameid/StoredPersistentIdDecoderTest.java

Modified: trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/nameid/StoredPersistentIdDecoderTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/nameid/StoredPersistentIdDecoderTest.java?rev=5645&r1=5644&r2=5645&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/nameid/StoredPersistentIdDecoderTest.java (original)
+++ trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/nameid/StoredPersistentIdDecoderTest.java Thu Mar 27 06:39:19 2014
@@ -35,6 +35,7 @@
 import net.shibboleth.idp.testing.DatabaseTestingSupport;
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 
+import org.junit.AfterClass;
 import org.opensaml.core.OpenSAMLInitBaseTestCase;
 import org.opensaml.profile.ProfileException;
 import org.opensaml.profile.context.ProfileRequestContext;
@@ -49,8 +50,6 @@
 /** Test for {@link StoredPersistentIdDecoder}. */
 public class StoredPersistentIdDecoderTest extends OpenSAMLInitBaseTestCase {
 
-    private static final String INIT_FILE = "/net/shibboleth/idp/saml/impl/nameid/StoredIdStore.sql";
-    
     private DataSource testSource;
     
     private ProfileRequestContext prc;
@@ -60,8 +59,13 @@
     private StoredPersistentIdDecoder decoder;
     
     @BeforeClass public void setUpSource() {
-        testSource = DatabaseTestingSupport.GetMockDataSource(INIT_FILE, "StoredIDDataConnectorStore");
+        testSource = DatabaseTestingSupport.GetMockDataSource(PersistentSAML2NameIDGeneratorTest.INIT_FILE, "StoredIDDataConnectorStore");
     }
+    
+    @AfterClass public void teardown() {
+        DatabaseTestingSupport.InitializeDataSource(PersistentSAML2NameIDGeneratorTest.DELETE_FILE, testSource);
+    }
+
     
     @BeforeMethod public void setUp() throws SQLException, IOException, ComponentInitializationException {
         



More information about the commits mailing list