Skip to content

Commit

Permalink
Adopt to changes in Spring Framework 7.
Browse files Browse the repository at this point in the history
See #2449
  • Loading branch information
mp911de committed Jan 8, 2025
1 parent 004b0a7 commit c6527d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ void returnsSimpleResponseEntityForQueryMethod() {
"findCreatedDateByLastName", PAGEABLE, Sort.unsorted(), new HttpHeaders(), assembler);

assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
assertThat(entity.getHeaders()).isEmpty();
assertThat(entity.getHeaders().isEmpty()).isTrue();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void doesNotAddHeaderForNoETag() {

HttpHeaders headers = ETag.NO_ETAG.addTo(new HttpHeaders());

assertThat(headers.containsKey("ETag")).isFalse();
assertThat(headers.getFirst("ETag")).isNull();
}

// tag::versioned-sample[]
Expand Down

0 comments on commit c6527d5

Please sign in to comment.