Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-8303

Create a metrics-test-utils artifact in the metrics module to export a handy metrics mock that can be used in tests

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: OpenIDM 5.5.0
    • Fix Version/s: OpenIDM 5.5.0
    • Component/s: Performance
    • Labels:

      Description

      This block is repeated:

              metricsCollector = mock(MetricsCollector.class);
              timer = mock(Timer.class);
              when(timer.start()).thenReturn(timer);
              when(metricsCollector.getTimer(any(Name.class))).thenReturn(timer);
      

      Create a metrics-test-utils artifact in the metrics module to export a handy metrics mock that can be used in tests.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joy.feng Joy Feng [X] (Inactive)
              Reporter:
              joy.feng Joy Feng [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: