You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Philip Zampino (Jira)" <ji...@apache.org> on 2024/07/29 14:04:00 UTC

[jira] [Created] (KNOX-3053) Fix DefaultTopologyServiceTest

Philip Zampino created KNOX-3053:
------------------------------------

             Summary: Fix DefaultTopologyServiceTest
                 Key: KNOX-3053
                 URL: https://issues.apache.org/jira/browse/KNOX-3053
             Project: Apache Knox
          Issue Type: Test
          Components: Tests
    Affects Versions: 2.0.1
            Reporter: Philip Zampino


org.apache.knox.gateway.services.topology.DefaultTopologyServiceTest#testTopologyDiscoveryTriggerHandlesInvalidDescriptorContent

 
{code:java}
java.lang.NullPointerException
    at org.apache.knox.gateway.services.topology.DefaultTopologyServiceTest.testTopologyDiscoveryTriggerHandlesInvalidDescriptorContent(DefaultTopologyServiceTest.java:649)
 
{code}
 

This line in DefaultTopologyService class returns null because the mock setup is done after the logic is actually called.
{code:java}
ClusterConfigurationMonitorService ccms = gwServices.getService(ServiceType.CLUSTER_CONFIGURATION_MONITOR_SERVICE);{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)