Skip to content

Commit

Permalink
Copyright and style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tjquinno committed Oct 1, 2024
1 parent 928755e commit 5be24ad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Oracle and/or its affiliates.
* Copyright (c) 2023, 2024 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.
Expand Down Expand Up @@ -91,7 +91,8 @@ void testSameNameSameTwoTags() {
void testDisabledYieldsNoOp() {
// Disable metrics using config.
Config metricsDisabledConfig = Config.just(ConfigSources.create(Map.of("enabled", "false")));
MeterRegistry shouldBeNoOp = MetricsFactory.getInstance().createMeterRegistry(MetricsConfig.create(metricsDisabledConfig));
MeterRegistry shouldBeNoOp = MetricsFactory.getInstance()
.createMeterRegistry(MetricsConfig.create(metricsDisabledConfig));

Counter shouldBeNoOpCounter = shouldBeNoOp.getOrCreate(Counter.builder("shouldBeNoOpCounter"));
assertThat("Counters after registration", shouldBeNoOp.meters(), is(emptyIterable()));
Expand Down

0 comments on commit 5be24ad

Please sign in to comment.