From 0e6dfd8b6adad18312a4ed65d3bc7a5485cb6983 Mon Sep 17 00:00:00 2001 From: Laird Nelson Date: Mon, 20 Mar 2023 15:31:40 -0700 Subject: [PATCH] Enables TestDisabledMetrics.java in microprofile/metrics Signed-off-by: Laird Nelson --- .../helidon/microprofile/metrics/TestDisabledMetrics.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/microprofile/metrics/src/test/java/io/helidon/microprofile/metrics/TestDisabledMetrics.java b/microprofile/metrics/src/test/java/io/helidon/microprofile/metrics/TestDisabledMetrics.java index 2b2ce6551dc..076eb0fcf74 100644 --- a/microprofile/metrics/src/test/java/io/helidon/microprofile/metrics/TestDisabledMetrics.java +++ b/microprofile/metrics/src/test/java/io/helidon/microprofile/metrics/TestDisabledMetrics.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Oracle and/or its affiliates. + * Copyright (c) 2021, 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import io.helidon.microprofile.tests.junit5.AddConfig; import io.helidon.microprofile.tests.junit5.HelidonTest; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import static org.hamcrest.MatcherAssert.assertThat; @@ -30,13 +29,12 @@ @HelidonTest @AddConfig(key = "metrics.enabled", value = "false") @AddBean(GaugedBean.class) -@Disabled class TestDisabledMetrics { @Test void ensureRegistryFactoryIsMinimal() { // Invoking instance() should retrieve the factory previously initialized as disabled. RegistryFactory rf = RegistryFactory.getInstance(); - assertThat("RegistryFactory type", rf, not(instanceOf(io.helidon.metrics.api.RegistryFactory.class))); + assertThat("RegistryFactory type", rf, not(instanceOf(io.helidon.metrics.RegistryFactory.class))); } }