Skip to content

Commit 4b99428

Browse files
vpavicrwinch
authored andcommitted
Polish SessionRepositoryFilterTests
1 parent 058e4e4 commit 4b99428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-session-core/src/test/java/org/springframework/session/web/http/SessionRepositoryFilterTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
* Tests for {@link SessionRepositoryFilter}.
7979
*/
8080
@ExtendWith(MockitoExtension.class)
81-
@SuppressWarnings("deprecation")
8281
class SessionRepositoryFilterTests {
8382

8483
@Mock
@@ -1188,8 +1187,9 @@ public void doFilter(HttpServletRequest wrappedRequest, HttpServletResponse wrap
11881187

11891188
@Test
11901189
void order() {
1191-
assertThat(AnnotationAwareOrderComparator.INSTANCE.compare(this.filter,
1192-
new SessionRepositoryFilterDefaultOrder()));
1190+
assertThat(
1191+
AnnotationAwareOrderComparator.INSTANCE.compare(this.filter, new SessionRepositoryFilterDefaultOrder()))
1192+
.isZero();
11931193
}
11941194

11951195
// We want the filter to work without any dependencies on Spring
@@ -1401,7 +1401,7 @@ public int getOrder() {
14011401

14021402
}
14031403

1404-
private abstract class DoInFilter {
1404+
private abstract static class DoInFilter {
14051405

14061406
void doFilter(HttpServletRequest wrappedRequest, HttpServletResponse wrappedResponse)
14071407
throws ServletException, IOException {

0 commit comments

Comments
 (0)