File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
spring-data-cassandra-distribution
spring-data-cassandra/src/test/java/org/springframework/data/cassandra/observability Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 38
38
</goals >
39
39
</execution >
40
40
</executions >
41
-
42
41
</plugin >
43
42
44
43
<plugin >
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .springframework .data .cassandra .observability ;
17
17
18
+ import static org .assertj .core .api .Assertions .*;
19
+
18
20
import io .micrometer .core .instrument .MeterRegistry ;
19
21
import io .micrometer .core .instrument .simple .SimpleMeterRegistry ;
20
22
import io .micrometer .observation .Observation ;
21
23
import io .micrometer .observation .ObservationRegistry ;
22
24
import io .micrometer .observation .contextpropagation .ObservationThreadLocalAccessor ;
23
25
import io .micrometer .tracing .test .SampleTestRunner ;
24
- import static org .assertj .core .api .Assertions .*;
25
26
import reactor .core .publisher .Mono ;
26
27
import reactor .test .StepVerifier ;
27
28
import reactor .util .context .Context ;
28
29
29
30
import org .junit .jupiter .api .extension .ExtendWith ;
31
+
30
32
import org .springframework .beans .factory .annotation .Autowired ;
31
33
import org .springframework .data .cassandra .ReactiveResultSet ;
32
34
import org .springframework .data .cassandra .ReactiveSession ;
@@ -88,7 +90,7 @@ public SampleTestRunnerConsumer yourCode() {
88
90
89
91
System .out .println (((SimpleMeterRegistry ) meterRegistry ).getMetersAsString ());
90
92
91
- assertThat (tracer .getFinishedSpans (). size ()). isGreaterThanOrEqualTo ( 7 );
93
+ assertThat (tracer .getFinishedSpans ()). hasSizeGreaterThanOrEqualTo ( 6 );
92
94
};
93
95
}
94
96
}
You can’t perform that action at this time.
0 commit comments