Skip to content

Commit dfd7449

Browse files
committed
Merge branch '6.0.x'
2 parents 90ffa95 + aabd685 commit dfd7449

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

spring-test/src/main/java/org/springframework/mock/web/MockServletContext.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -111,13 +111,13 @@ public class MockServletContext implements ServletContext {
111111

112112
private final Map<String, ServletContext> contexts = new HashMap<>();
113113

114-
private int majorVersion = 3;
114+
private int majorVersion = 6;
115115

116-
private int minorVersion = 1;
116+
private int minorVersion = 0;
117117

118-
private int effectiveMajorVersion = 3;
118+
private int effectiveMajorVersion = 6;
119119

120-
private int effectiveMinorVersion = 1;
120+
private int effectiveMinorVersion = 0;
121121

122122
private final Map<String, RequestDispatcher> namedRequestDispatchers = new HashMap<>();
123123

spring-test/src/test/java/org/springframework/mock/web/MockServletContextTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ void getMimeTypeWithCustomConfiguredType() {
105105

106106
@Test
107107
void servletVersion() {
108-
assertThat(servletContext.getMajorVersion()).isEqualTo(3);
109-
assertThat(servletContext.getMinorVersion()).isEqualTo(1);
110-
assertThat(servletContext.getEffectiveMajorVersion()).isEqualTo(3);
111-
assertThat(servletContext.getEffectiveMinorVersion()).isEqualTo(1);
108+
assertThat(servletContext.getMajorVersion()).isEqualTo(6);
109+
assertThat(servletContext.getMinorVersion()).isEqualTo(0);
110+
assertThat(servletContext.getEffectiveMajorVersion()).isEqualTo(6);
111+
assertThat(servletContext.getEffectiveMinorVersion()).isEqualTo(0);
112112

113113
servletContext.setMajorVersion(4);
114114
servletContext.setMinorVersion(0);

spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/MockServletContext.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -111,13 +111,13 @@ public class MockServletContext implements ServletContext {
111111

112112
private final Map<String, ServletContext> contexts = new HashMap<>();
113113

114-
private int majorVersion = 3;
114+
private int majorVersion = 6;
115115

116-
private int minorVersion = 1;
116+
private int minorVersion = 0;
117117

118-
private int effectiveMajorVersion = 3;
118+
private int effectiveMajorVersion = 6;
119119

120-
private int effectiveMinorVersion = 1;
120+
private int effectiveMinorVersion = 0;
121121

122122
private final Map<String, RequestDispatcher> namedRequestDispatchers = new HashMap<>();
123123

0 commit comments

Comments
 (0)