Skip to content

Commit

Permalink
Merge branch '2.7.x' into 3.0.x
Browse files Browse the repository at this point in the history
Closes gh-34417
  • Loading branch information
mhalbritter committed Mar 1, 2023
2 parents 8b97797 + 891dc91 commit 73ba797
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ void whenPropertiesRateUnitsIsSetAdapterRateUnitsReturnsIt() {
@Test
void whenPropertiesDurationUnitsIsSetAdapterDurationUnitsReturnsIt() {
GraphiteProperties properties = new GraphiteProperties();
properties.setRateUnits(TimeUnit.MINUTES);
assertThat(new GraphitePropertiesConfigAdapter(properties).rateUnits()).isEqualTo(TimeUnit.MINUTES);
properties.setDurationUnits(TimeUnit.MINUTES);
assertThat(new GraphitePropertiesConfigAdapter(properties).durationUnits()).isEqualTo(TimeUnit.MINUTES);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void whenPropertiesClientProviderTypeIsSetAdapterClientProviderTypeReturnsIt() {
}

@Test
void whenPropertiesApikeyIsSetAdapterApikeyReturnsIt() {
void whenPropertiesApiKeyIsSetAdapterApiKeyReturnsIt() {
NewRelicProperties properties = createProperties();
properties.setApiKey("my-key");
assertThat(createConfigAdapter(properties).apiKey()).isEqualTo("my-key");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
* @author Mirko Sobeck
*/
class SignalFXPropertiesConfigAdapterTests
class SignalFxPropertiesConfigAdapterTests
extends StepRegistryPropertiesConfigAdapterTests<SignalFxProperties, SignalFxPropertiesConfigAdapter> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
import io.micrometer.core.instrument.simple.CountingMode;
import org.junit.jupiter.api.Test;

import org.springframework.boot.actuate.autoconfigure.metrics.export.signalfx.SignalFxPropertiesConfigAdapter;

import static org.assertj.core.api.Assertions.assertThat;

/**
* Tests for {@link SignalFxPropertiesConfigAdapter}.
* Tests for {@link SimplePropertiesConfigAdapter}.
*
* @author Mirko Sobeck
*/
Expand All @@ -40,7 +38,7 @@ void whenPropertiesStepIsSetAdapterStepReturnsIt() {
}

@Test
void whenPropertiesAccessTokenIsSetAdapterAccessTokenReturnsIt() {
void whenPropertiesModeIsSetAdapterModeReturnsIt() {
SimpleProperties properties = new SimpleProperties();
properties.setMode(CountingMode.STEP);
assertThat(new SimplePropertiesConfigAdapter(properties).mode()).isEqualTo(CountingMode.STEP);
Expand Down

0 comments on commit 73ba797

Please sign in to comment.