This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new ea61f663771d Specify more precise resource lock on ZXsltTotalOpsTest
ea61f663771d is described below

commit ea61f663771d02a365d2bd4848cb69f0e4dd5d8c
Author: Aurélien Pupier <[email protected]>
AuthorDate: Wed Jul 22 14:17:14 2026 +0200

    Specify more precise resource lock on ZXsltTotalOpsTest
    
    TestSupport (the grandparent) declares @ResourceLock(value =
    Resources.SYSTEM_PROPERTIES, mode = READ), telling JUnit this test only
    reads system properties. Since this test writes them, the inherited
    declaration is incorrect — it should be overridden with the default
    (READ_WRITE) mode.
    
    follows-up to
    https://github.com/apache/camel/pull/24955#pullrequestreview-4750830939
    
    Signed-off-by: Aurélien Pupier <[email protected]>
---
 .../test/java/org/apache/camel/component/xslt/ZXsltTotalOpsTest.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/ZXsltTotalOpsTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/ZXsltTotalOpsTest.java
index b13cc0c7fde4..bed96c1b65ce 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/xslt/ZXsltTotalOpsTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/xslt/ZXsltTotalOpsTest.java
@@ -23,11 +23,14 @@ import org.apache.camel.builder.RouteBuilder;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.parallel.Isolated;
+import org.junit.jupiter.api.parallel.ResourceLock;
+import org.junit.jupiter.api.parallel.Resources;
 
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 @Isolated
+@ResourceLock(Resources.SYSTEM_PROPERTIES)
 public class ZXsltTotalOpsTest extends ContextTestSupport {
 
     @Override

Reply via email to