Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ void toBuilderEquality()
assertThat(copy.unwrap())
.extracting("builder")
.usingRecursiveComparison()
.withStrictTypeChecking()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.ignoringFields("tlsConfigHelper")
.isEqualTo(builderField.get(unwrapped));
} finally {
Expand All @@ -1000,6 +1001,7 @@ void toBuilderEquality()
assertThat(copy.unwrap())
.extracting("builder")
.usingRecursiveComparison()
.withStrictTypeChecking()
.ignoringFields("tlsConfigHelper")
.isNotEqualTo(builderField.get(unwrapped));
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ void toBuilderEquality()
assertThat(copy.unwrap())
.extracting("builder")
.usingRecursiveComparison()
.withStrictTypeChecking()
.ignoringFields("tlsConfigHelper")
.isEqualTo(builderField.get(unwrapped));
} finally {
Expand All @@ -862,6 +863,7 @@ void toBuilderEquality()
assertThat(copy.unwrap())
.extracting("builder")
.usingRecursiveComparison()
.withStrictTypeChecking()
.ignoringFields("tlsConfigHelper")
.isNotEqualTo(builderField.get(unwrapped));
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ void updateLogLimits_All() {
// Preserves values
LogLimits logLimitsDupe = logLimits.toBuilder().build();
// Use reflective comparison to catch when new fields are added.
assertThat(logLimitsDupe).usingRecursiveComparison().isEqualTo(logLimits);
assertThat(logLimitsDupe)
.usingRecursiveComparison()
.withStrictTypeChecking()
.isEqualTo(logLimits);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ void findViews_ApplyAdvice() {
assertThat(view)
.as("is the same as the default view, except the attributes processor")
.usingRecursiveComparison()
.withStrictTypeChecking()
.ignoringFields("viewAttributesProcessor")
.isEqualTo(DEFAULT_REGISTERED_VIEW);
assertThat(view)
Expand Down Expand Up @@ -520,6 +521,7 @@ void findViews_ApplyAdvice() {
assertThat(view)
.as("is the same as the default view, except the attributes processor")
.usingRecursiveComparison()
.withStrictTypeChecking()
.ignoringFields("viewAttributesProcessor")
.isEqualTo(DEFAULT_REGISTERED_VIEW);
assertThat(view)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ void updateSpanLimits_All() {
// Preserves values
SpanLimits spanLimitsDupe = spanLimits.toBuilder().build();
// Use reflective comparison to catch when new fields are added.
assertThat(spanLimitsDupe).usingRecursiveComparison().isEqualTo(spanLimits);
assertThat(spanLimitsDupe)
.usingRecursiveComparison()
.withStrictTypeChecking()
.isEqualTo(spanLimits);
}

@Test
Expand Down
Loading