[
https://issues.apache.org/jira/browse/KNOX-3053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philip Zampino resolved KNOX-3053.
----------------------------------
Fix Version/s: 2.1.0
Assignee: Philip Zampino
Resolution: Fixed
> 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
> Assignee: Philip Zampino
> Priority: Major
> Fix For: 2.1.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)