File tree Expand file tree Collapse file tree 5 files changed +14
-2
lines changed
exporters/otlp/testing-internal/src/main/java/io/opentelemetry/exporter/otlp/testing/internal
logs/src/test/java/io/opentelemetry/sdk/logs
metrics/src/test/java/io/opentelemetry/sdk/metrics/internal/view
trace/src/test/java/io/opentelemetry/sdk/trace/config Expand file tree Collapse file tree 5 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -988,6 +988,7 @@ void toBuilderEquality()
988
988
assertThat (copy .unwrap ())
989
989
.extracting ("builder" )
990
990
.usingRecursiveComparison ()
991
+ .withStrictTypeChecking ()
991
992
.ignoringFields ("tlsConfigHelper" )
992
993
.isEqualTo (builderField .get (unwrapped ));
993
994
} finally {
@@ -1000,6 +1001,7 @@ void toBuilderEquality()
1000
1001
assertThat (copy .unwrap ())
1001
1002
.extracting ("builder" )
1002
1003
.usingRecursiveComparison ()
1004
+ .withStrictTypeChecking ()
1003
1005
.ignoringFields ("tlsConfigHelper" )
1004
1006
.isNotEqualTo (builderField .get (unwrapped ));
1005
1007
} finally {
Original file line number Diff line number Diff line change @@ -850,6 +850,7 @@ void toBuilderEquality()
850
850
assertThat (copy .unwrap ())
851
851
.extracting ("builder" )
852
852
.usingRecursiveComparison ()
853
+ .withStrictTypeChecking ()
853
854
.ignoringFields ("tlsConfigHelper" )
854
855
.isEqualTo (builderField .get (unwrapped ));
855
856
} finally {
@@ -862,6 +863,7 @@ void toBuilderEquality()
862
863
assertThat (copy .unwrap ())
863
864
.extracting ("builder" )
864
865
.usingRecursiveComparison ()
866
+ .withStrictTypeChecking ()
865
867
.ignoringFields ("tlsConfigHelper" )
866
868
.isNotEqualTo (builderField .get (unwrapped ));
867
869
} finally {
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ void updateLogLimits_All() {
29
29
// Preserves values
30
30
LogLimits logLimitsDupe = logLimits .toBuilder ().build ();
31
31
// Use reflective comparison to catch when new fields are added.
32
- assertThat (logLimitsDupe ).usingRecursiveComparison ().isEqualTo (logLimits );
32
+ assertThat (logLimitsDupe )
33
+ .usingRecursiveComparison ()
34
+ .withStrictTypeChecking ()
35
+ .isEqualTo (logLimits );
33
36
}
34
37
35
38
@ Test
Original file line number Diff line number Diff line change @@ -488,6 +488,7 @@ void findViews_ApplyAdvice() {
488
488
assertThat (view )
489
489
.as ("is the same as the default view, except the attributes processor" )
490
490
.usingRecursiveComparison ()
491
+ .withStrictTypeChecking ()
491
492
.ignoringFields ("viewAttributesProcessor" )
492
493
.isEqualTo (DEFAULT_REGISTERED_VIEW );
493
494
assertThat (view )
@@ -520,6 +521,7 @@ void findViews_ApplyAdvice() {
520
521
assertThat (view )
521
522
.as ("is the same as the default view, except the attributes processor" )
522
523
.usingRecursiveComparison ()
524
+ .withStrictTypeChecking ()
523
525
.ignoringFields ("viewAttributesProcessor" )
524
526
.isEqualTo (DEFAULT_REGISTERED_VIEW );
525
527
assertThat (view )
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ void updateSpanLimits_All() {
42
42
// Preserves values
43
43
SpanLimits spanLimitsDupe = spanLimits .toBuilder ().build ();
44
44
// Use reflective comparison to catch when new fields are added.
45
- assertThat (spanLimitsDupe ).usingRecursiveComparison ().isEqualTo (spanLimits );
45
+ assertThat (spanLimitsDupe )
46
+ .usingRecursiveComparison ()
47
+ .withStrictTypeChecking ()
48
+ .isEqualTo (spanLimits );
46
49
}
47
50
48
51
@ Test
You can’t perform that action at this time.
0 commit comments