Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-3053

Fix DefaultTopologyServiceTest

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.1.0
    • Tests
    • None

    Description

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

       

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

       

      This line in DefaultTopologyService class returns null because the mock setup is done after the logic is actually called.

      ClusterConfigurationMonitorService ccms = gwServices.getService(ServiceType.CLUSTER_CONFIGURATION_MONITOR_SERVICE);

      Attachments

        Issue Links

          Activity

            People

              pzampino Philip Zampino
              pzampino Philip Zampino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m