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

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit b7f467e8ad813a38f76939460017d30c9c72bea6
Author: Robert Lazarski <[email protected]>
AuthorDate: Tue Apr 7 03:09:45 2026 -1000

    Fix test: testMcpDestructiveParamSetsDestructiveHint uses filtered service 
name
    
    "AdminService" is excluded by isSystemService() so getCatalogTools().get(0)
    returned null, causing the NPE. Renamed to "DataManagementService".
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 .../test/java/org/apache/axis2/openapi/McpCatalogGeneratorTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/modules/openapi/src/test/java/org/apache/axis2/openapi/McpCatalogGeneratorTest.java
 
b/modules/openapi/src/test/java/org/apache/axis2/openapi/McpCatalogGeneratorTest.java
index a799ef7a84..167ccdf3f9 100644
--- 
a/modules/openapi/src/test/java/org/apache/axis2/openapi/McpCatalogGeneratorTest.java
+++ 
b/modules/openapi/src/test/java/org/apache/axis2/openapi/McpCatalogGeneratorTest.java
@@ -690,7 +690,8 @@ public class McpCatalogGeneratorTest extends TestCase {
      * {@code mcpDestructive=true} maps to {@code destructiveHint: true}.
      */
     public void testMcpDestructiveParamSetsDestructiveHint() throws Exception {
-        AxisService svc = new AxisService("AdminService");
+        // Use a non-system service name — "AdminService" is filtered by 
isSystemService()
+        AxisService svc = new AxisService("DataManagementService");
         AxisOperation op = new InOutAxisOperation();
         op.setName(QName.valueOf("deleteAllData"));
         op.addParameter(new 
org.apache.axis2.description.Parameter("mcpDestructive", "true"));

Reply via email to