Class TestIpdMetricCollector

All Implemented Interfaces:
FunctTestConstants

public class TestIpdMetricCollector extends BaseInProductDiagnosticsTest
  • Constructor Details

    • TestIpdMetricCollector

      public TestIpdMetricCollector()
  • Method Details

    • before

      public static void before()
    • after

      public static void after()
    • allRegularlyLoggedMetricsFoundInLogFile

      public void allRegularlyLoggedMetricsFoundInLogFile() throws IOException
      IPD metrics can be logged to the file on three ways: 1. On Demand using an update() method when registry used for creating metric had noUpdateListener. 2. Regularly on update() if you create InProductDiagnosticJob for metric that's created as described in 1. 3. Regularly with logger that goes through all metrics registered in IpdMainRegistry and log their value if are enabled.
      Throws:
      IOException
    • logFileContainsOnlyExpectedMetrics

      public void logFileContainsOnlyExpectedMetrics() throws IOException
      Throws:
      IOException
    • logFileLastValueMetricsHaveExpectedArguments

      public void logFileLastValueMetricsHaveExpectedArguments() throws IOException
      Throws:
      IOException
    • logFileStatsMetricsHaveExpectedArguments

      public void logFileStatsMetricsHaveExpectedArguments() throws IOException
      Throws:
      IOException
    • logFileStatsMetricsExtraLoggingContainsAllInfo

      public void logFileStatsMetricsExtraLoggingContainsAllInfo() throws IOException
      Throws:
      IOException