Skip to content

Commit a37f114

Browse files
author
m.zharinova
committed
delete empty lines
1 parent a8421b1 commit a37f114

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

spring-boot-2-demo-app/src/test/java/io/github/mfvanek/spring/boot2/test/ApplicationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ class ApplicationTests extends TestBase {
1414
@Test
1515
void contextLoads() {
1616
}
17+
1718
@Test
1819
void jdbcQueryTimeoutFromProperties() {
1920
assertThat(jdbcTemplate.getQueryTimeout())
2021
.isEqualTo(1);
2122
}
23+
2224
@Test
2325
@DisplayName("Throws exception when query exceeds timeout")
2426
void exceptionWithLongQuery() {
@@ -33,4 +35,3 @@ void exceptionNotThrownWithNotLongQuery() {
3335
assertThatNoException().isThrownBy(() -> jdbcTemplate.execute("select pg_sleep(0.9);"));
3436
}
3537
}
36-

spring-boot-3-demo-app/src/test/java/io/github/mfvanek/spring/boot3/test/ApplicationTests.java

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,31 @@ class ApplicationTests extends TestBase {
2727
@Test
2828
void contextLoads() {
2929
assertThat(applicationContext.containsBean("otlpMeterRegistry"))
30-
.isFalse();
30+
.isFalse();
3131
assertThat(applicationContext.getBean(ObservationRegistry.class))
32-
.isNotNull()
33-
.isInstanceOf(ObservationRegistry.class);
32+
.isNotNull()
33+
.isInstanceOf(ObservationRegistry.class);
3434
assertThat(applicationContext.getBean(Tracer.class))
35-
.isNotNull()
36-
.isInstanceOf(OtelTracer.class)
37-
.satisfies(t -> assertThat(t.currentSpan())
38-
.isNotEqualTo(Span.NOOP));
35+
.isNotNull()
36+
.isInstanceOf(OtelTracer.class)
37+
.satisfies(t -> assertThat(t.currentSpan())
38+
.isNotEqualTo(Span.NOOP));
3939
assertThat(applicationContext.getBean("otelJaegerGrpcSpanExporter"))
40-
.isNotNull()
41-
.isInstanceOf(OtlpGrpcSpanExporter.class)
42-
.hasToString(String.format(Locale.ROOT, "OtlpGrpcSpanExporter{exporterName=otlp, type=span, " +
43-
"endpoint=http://localhost:%d, " +
44-
"endpointPath=/opentelemetry.proto.collector.trace.v1.TraceService/Export, timeoutNanos=5000000000, " +
45-
"connectTimeoutNanos=10000000000, compressorEncoding=null, " +
46-
"headers=Headers{User-Agent=OBFUSCATED}}", JaegerInitializer.getFirstMappedPort()));
40+
.isNotNull()
41+
.isInstanceOf(OtlpGrpcSpanExporter.class)
42+
.hasToString(String.format(Locale.ROOT, "OtlpGrpcSpanExporter{exporterName=otlp, type=span, " +
43+
"endpoint=http://localhost:%d, " +
44+
"endpointPath=/opentelemetry.proto.collector.trace.v1.TraceService/Export, timeoutNanos=5000000000, " +
45+
"connectTimeoutNanos=10000000000, compressorEncoding=null, " +
46+
"headers=Headers{User-Agent=OBFUSCATED}}", JaegerInitializer.getFirstMappedPort()));
4747
}
48+
4849
@Test
4950
void jdbcQueryTimeoutFromProperties() {
5051
assertThat(jdbcTemplate.getQueryTimeout())
5152
.isEqualTo(1);
5253
}
54+
5355
@Test
5456
@DisplayName("Throws exception when query exceeds timeout")
5557
void exceptionWithLongQuery() {
@@ -64,4 +66,3 @@ void exceptionNotThrownWithNotLongQuery() {
6466
assertThatNoException().isThrownBy(() -> jdbcTemplate.execute("select pg_sleep(0.9);"));
6567
}
6668
}
67-

0 commit comments

Comments
 (0)