Skip to content

Commit bf569df

Browse files
committed
spotless
1 parent 4d1989a commit bf569df

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/ActiveMqIntegrationTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ protected GenericContainer<?> createTargetContainer(int jmxPort) {
2323
new ImageFromDockerfile()
2424
.withDockerfileFromBuilder(
2525
builder -> builder.from("apache/activemq-classic:5.18.6").build()))
26-
.withEnv(
27-
"JAVA_TOOL_OPTIONS",
28-
genericJmxJvmArguments(jmxPort))
26+
.withEnv("JAVA_TOOL_OPTIONS", genericJmxJvmArguments(jmxPort))
2927
.withStartupTimeout(Duration.ofMinutes(2))
3028
.waitingFor(Wait.forListeningPort());
3129
}

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/CassandraIntegrationTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ public class CassandraIntegrationTest extends TargetSystemIntegrationTest {
2424
@Override
2525
protected GenericContainer<?> createTargetContainer(int jmxPort) {
2626
return new GenericContainer<>("cassandra:5.0.2")
27-
.withEnv("JVM_EXTRA_OPTS",
27+
.withEnv(
28+
"JVM_EXTRA_OPTS",
2829
genericJmxJvmArguments(jmxPort)
29-
// making cassandra startup faster for single node, from ~1min to ~15s
30-
+ " -Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.initial_token=0")
30+
// making cassandra startup faster for single node, from ~1min to ~15s
31+
+ " -Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.initial_token=0")
3132
.withStartupTimeout(Duration.ofMinutes(2))
3233
.waitingFor(Wait.forLogMessage(".*Startup complete.*", 1));
3334
}

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/JettyIntegrationTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ protected void verifyMetrics() {
7575
"s",
7676
attrs -> attrs.containsKey("resource")),
7777
metric ->
78-
assertSumWithAttributesMultiplePoints(metric,
78+
assertSumWithAttributesMultiplePoints(
79+
metric,
7980
"jetty.select.count",
8081
"The number of select calls.",
8182
"{operations}",
8283
/* isMonotonic= */ true,
8384
// minor divergence from jetty.groovy with extra metrics attributes
84-
attrs -> attrs.containsKey("context").containsKey("id")
85-
),
85+
attrs -> attrs.containsKey("context").containsKey("id")),
8686
metric ->
8787
assertGaugeWithAttributes(
8888
metric,
@@ -96,7 +96,6 @@ protected void verifyMetrics() {
9696
metric,
9797
"jetty.thread.queue.count",
9898
"The current number of threads in the queue.",
99-
"{threads}"
100-
));
99+
"{threads}"));
101100
}
102101
}

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/MetricAssertions.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,14 @@ private static void assertAttributedMultiplePoints(
161161

162162
points.stream()
163163
.map(NumberDataPoint::getAttributesList)
164-
.forEach(kvList -> {
165-
Map<String, String> kvMap = kvList.stream()
166-
.collect(Collectors.toMap(KeyValue::getKey, kv -> kv.getValue().getStringValue()));
167-
Arrays.stream(attributeGroupAssertions)
168-
.forEach(assertion -> assertion.accept(assertThat(kvMap)));
169-
});
164+
.forEach(
165+
kvList -> {
166+
Map<String, String> kvMap =
167+
kvList.stream()
168+
.collect(
169+
Collectors.toMap(KeyValue::getKey, kv -> kv.getValue().getStringValue()));
170+
Arrays.stream(attributeGroupAssertions)
171+
.forEach(assertion -> assertion.accept(assertThat(kvMap)));
172+
});
170173
}
171174
}

0 commit comments

Comments
 (0)