Skip to content

Commit c6527d5

Browse files
committed
Adopt to changes in Spring Framework 7.
See #2449
1 parent 004b0a7 commit c6527d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/RepositorySearchControllerIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,6 @@ void returnsSimpleResponseEntityForQueryMethod() {
235235
"findCreatedDateByLastName", PAGEABLE, Sort.unsorted(), new HttpHeaders(), assembler);
236236

237237
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
238-
assertThat(entity.getHeaders()).isEmpty();
238+
assertThat(entity.getHeaders().isEmpty()).isTrue();
239239
}
240240
}

spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/support/ETagUnitTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void doesNotAddHeaderForNoETag() {
135135

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

138-
assertThat(headers.containsKey("ETag")).isFalse();
138+
assertThat(headers.getFirst("ETag")).isNull();
139139
}
140140

141141
// tag::versioned-sample[]

0 commit comments

Comments
 (0)