[java-idp-oidc] branch master updated: Remove the metadata from StorageService after each test.

Henri Mikkonen henri.mikkonen at iki.fi
Wed Jan 29 11:12:28 EST 2020


This is an automated email from the git hooks/post-receive script.

hjmikkon pushed a commit to branch master
in repository java-idp-oidc.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-oidc.git;a=commit;h=d68e5a75a83b245c538e0c4fe1ede56894045051

The following commit(s) were added to refs/heads/master by this push:
       new  d68e5a7   Remove the metadata from StorageService after each test.
d68e5a7 is described below

commit d68e5a75a83b245c538e0c4fe1ede56894045051
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Wed Jan 29 18:12:08 2020 +0200

    Remove the metadata from StorageService after each test.
---
 .../org/geant/idpextension/oidc/profile/flow/AuthorizeFlowTest.java | 6 ++++++
 .../org/geant/idpextension/oidc/profile/flow/TokenFlowTest.java     | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AuthorizeFlowTest.java b/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AuthorizeFlowTest.java
index e745628..ac179a0 100644
--- a/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AuthorizeFlowTest.java
+++ b/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/AuthorizeFlowTest.java
@@ -23,6 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.webflow.executor.FlowExecutionResult;
 import org.testng.Assert;
+import org.testng.annotations.AfterMethod;
 import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.Test;
 
@@ -74,4 +75,9 @@ public class AuthorizeFlowTest extends AbstractOidcFlowTest {
         Assert.assertNotNull(successResponse.getAuthorizationCode());
     }
 
+    @AfterMethod
+    public void removeMetadata() throws IOException {
+        removeMetadata(storageService, clientId);
+    }
+
 }
diff --git a/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/TokenFlowTest.java b/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/TokenFlowTest.java
index 7f9459b..fe94b6e 100644
--- a/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/TokenFlowTest.java
+++ b/idp-oidc-extension-impl/src/test/java/org/geant/idpextension/oidc/profile/flow/TokenFlowTest.java
@@ -29,7 +29,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.webflow.executor.FlowExecutionResult;
 import org.testng.Assert;
-import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.AfterMethod;
 import org.testng.annotations.Test;
 
 import com.nimbusds.jose.JOSEException;
@@ -72,8 +72,8 @@ public class TokenFlowTest extends AbstractOidcFlowTest {
         super(FLOW_ID);
     }
     
-    @BeforeMethod
-    public void setup() throws IOException {
+    @AfterMethod
+    public void removeMetadata() throws IOException {
         removeMetadata(storageService, clientId);
         removeMetadata(storageService, clientIdPkcePlain);
         removeMetadata(storageService, clientIdPkceS256);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list