[java-shib-attribute] branch main updated: Fix overlapping test state.

Codeberg noreply at shibboleth.net
Thu Mar 12 14:28:23 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-shib-attribute.

View the commit online:
https://codeberg.org/Shibboleth/java-shib-attribute/commit/60c07a71a522ea0c18d7d10a991b424fc0897238

The following commit(s) were added to refs/heads/main by this push:
     new 60c07a71a Fix overlapping test state.
60c07a71a is described below

commit 60c07a71a522ea0c18d7d10a991b424fc0897238
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Mar 12 10:28:14 2026 -0400

    Fix overlapping test state.
---
 .../resolver/spring/AttributeMappingNodeProcessorTest.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeMappingNodeProcessorTest.java b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeMappingNodeProcessorTest.java
index 8cf50fef5..82fe2ea13 100644
--- a/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeMappingNodeProcessorTest.java
+++ b/shib-attribute-resolver-spring/src/test/java/net/shibboleth/idp/attribute/resolver/spring/AttributeMappingNodeProcessorTest.java
@@ -29,8 +29,8 @@ import org.opensaml.saml.saml2.metadata.EntityDescriptor;
 import org.opensaml.saml.saml2.metadata.SPSSODescriptor;
 import org.springframework.context.support.ConversionServiceFactoryBean;
 import org.springframework.context.support.GenericApplicationContext;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.Test;
 
 import com.google.common.collect.Multimap;
@@ -60,7 +60,7 @@ public class AttributeMappingNodeProcessorTest extends XMLObjectBaseTestCase {
 
     @Nullable private GenericApplicationContext pendingTeardownContext;
     
-    @AfterClass public void tearDownTestContext() {
+    @AfterMethod public void tearDownTestContext() {
         if (null != pendingTeardownContext ) {
             pendingTeardownContext.close();
             pendingTeardownContext = null;
@@ -72,7 +72,7 @@ public class AttributeMappingNodeProcessorTest extends XMLObjectBaseTestCase {
         pendingTeardownContext = context;
     }
 
-    @BeforeClass public void setup() {
+    @BeforeMethod public void setup() {
         entityDescriptor = unmarshallElement("/net/shibboleth/idp/saml/attribute/impl/metadata.xml");
         assertNotNull(entityDescriptor);
         service = getService();

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


More information about the commits mailing list