File tree 3 files changed +14
-14
lines changed
main/java/org/springframework/mock/web
test/java/org/springframework/mock/web
spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet
3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -111,13 +111,13 @@ public class MockServletContext implements ServletContext {
111
111
112
112
private final Map <String , ServletContext > contexts = new HashMap <>();
113
113
114
- private int majorVersion = 3 ;
114
+ private int majorVersion = 6 ;
115
115
116
- private int minorVersion = 1 ;
116
+ private int minorVersion = 0 ;
117
117
118
- private int effectiveMajorVersion = 3 ;
118
+ private int effectiveMajorVersion = 6 ;
119
119
120
- private int effectiveMinorVersion = 1 ;
120
+ private int effectiveMinorVersion = 0 ;
121
121
122
122
private final Map <String , RequestDispatcher > namedRequestDispatchers = new HashMap <>();
123
123
Original file line number Diff line number Diff line change @@ -105,10 +105,10 @@ void getMimeTypeWithCustomConfiguredType() {
105
105
106
106
@ Test
107
107
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 );
112
112
113
113
servletContext .setMajorVersion (4 );
114
114
servletContext .setMinorVersion (0 );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -111,13 +111,13 @@ public class MockServletContext implements ServletContext {
111
111
112
112
private final Map <String , ServletContext > contexts = new HashMap <>();
113
113
114
- private int majorVersion = 3 ;
114
+ private int majorVersion = 6 ;
115
115
116
- private int minorVersion = 1 ;
116
+ private int minorVersion = 0 ;
117
117
118
- private int effectiveMajorVersion = 3 ;
118
+ private int effectiveMajorVersion = 6 ;
119
119
120
- private int effectiveMinorVersion = 1 ;
120
+ private int effectiveMinorVersion = 0 ;
121
121
122
122
private final Map <String , RequestDispatcher > namedRequestDispatchers = new HashMap <>();
123
123
You can’t perform that action at this time.
0 commit comments