This is an automated email from the ASF dual-hosted git repository.
veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git
The following commit(s) were added to refs/heads/master by this push:
new 3b63a4ebe Make the factoryIsSingleton test meaningful again
3b63a4ebe is described below
commit 3b63a4ebea65ff3308d1fa62ef6bcc2de29bb3e4
Author: Andreas Veithen-Knowles <[email protected]>
AuthorDate: Fri Jun 5 08:22:15 2026 +0000
Make the factoryIsSingleton test meaningful again
Some AI assisted refactoring resulted in the assertion in that test
becoming trivial. Fix the test to restore the original intention.
---
.../src/main/java/org/apache/axiom/ts/om/factory/OMFactoryTests.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/OMFactoryTests.java
b/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/OMFactoryTests.java
index 6d9d7c7c1..d85f57397 100644
---
a/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/OMFactoryTests.java
+++
b/testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/OMFactoryTests.java
@@ -243,7 +243,7 @@ public class OMFactoryTests {
*/
@Test
public void factoryIsSingleton() throws Throwable {
- assertThat(factory).isSameAs(factory);
+
assertThat(metaFactory.getOMFactory()).isSameAs(metaFactory.getOMFactory());
}
/**