Skip to content

Commit

Permalink
Use junit assertEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Mar 18, 2024
1 parent 9c8b9f8 commit 05701e0
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -20,7 +20,7 @@
import org.apache.camel.Exchange;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.*;

class MicrometerExchangeEventNotifierNamingStrategyTest {
Expand All @@ -31,7 +31,7 @@ void testDefaultFormatName() {

String result = defaultStrategy.formatName("some.metric.name");

assertThat(result).isEqualTo("some.metric.name");
assertEquals("some.metric.name", result);
}

@Test
Expand All @@ -40,7 +40,7 @@ void testLegacyFormatName() {

String result = legacyStrategy.formatName("some.metric.name");

assertThat(result).isEqualTo("SomeMetricName");
assertEquals("SomeMetricName", result);
}

@Test
Expand All @@ -50,7 +50,7 @@ void getDefaultInflightExchangesName() {
MicrometerExchangeEventNotifierNamingStrategy defaultStrategy = MicrometerExchangeEventNotifierNamingStrategy.DEFAULT;
String result = defaultStrategy.getInflightExchangesName(exchange, endpoint);

assertThat(result).isEqualTo("camel.exchanges.inflight");
assertEquals("camel.exchanges.inflight", result);
}

@Test
Expand All @@ -60,7 +60,7 @@ void getLegacyInflightExchangesName() {
MicrometerExchangeEventNotifierNamingStrategy defaultStrategy = MicrometerExchangeEventNotifierNamingStrategy.LEGACY;
String result = defaultStrategy.getInflightExchangesName(exchange, endpoint);

assertThat(result).isEqualTo("CamelExchangesInflight");
assertEquals("CamelExchangesInflight", result);
}

}

0 comments on commit 05701e0

Please sign in to comment.