Skip to content

Commit

Permalink
3.x Make OciMetricsDataTest.beforeEach public
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain1653 committed Aug 7, 2023
1 parent c86339a commit ec84ca7
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import io.helidon.metrics.api.RegistryFactory;

Expand All @@ -47,16 +46,10 @@ public class OciMetricsDataTest {
private final MetricRegistry appMetricRegistry = rf.getRegistry(Type.APPLICATION);

@BeforeEach
private void beforeEach() {
// clear all registry
public void clearAllRegistry() {
for (Type type: types) {
MetricRegistry metricRegistry = rf.getRegistry(type);
metricRegistry.removeMatching(new MetricFilter() {
@Override
public boolean matches(MetricID metricID, Metric metric) {
return true;
}
});
metricRegistry.removeMatching(MetricFilter.ALL);
}
}

Expand Down

0 comments on commit ec84ca7

Please sign in to comment.