Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12829

Fix JMX datacollection config generator test

    XMLWordPrintable

    Details

    • HB Backlog Status:
      NB

      Description

      Update JMX DataCollection Config Generator unit test to build the list of garbage collectors mbeans programmatically. Call System.gc() once to ensure all GC mbean attributes have data.

      [ERROR] testGenerateJmxConfigModelUsingMbeanFilter(org..features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest) Time elapsed: 0.046 s <<< FAILURE!
      java.lang.AssertionError: expected:<0> but was:<1>
      at org..features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest.testGenerateJmxConfigModelUsingMbeanFilter(JmxDatacollectionConfiggeneratorTest.java:137)
      
      [ERROR] testGenerateJmxConfigModelUsingMbeanFilter(org..features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest) Time elapsed: 0.01 s <<< FAILURE!
      java.lang.AssertionError: expected:<0> but was:<1>
      at org..features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest.testGenerateJmxConfigModelUsingMbeanFilter(JmxDatacollectionConfiggeneratorTest.java:137)
      
      

      https://github.com/OpenNMS/opennms/pull/3085

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ronald.roskens@biworldwide.com Ron Roskens
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                HB Grooming Date:

                  Git Integration