Skip to content

Commit 9a8085a

Browse files
committed
fix: MockHttpServletResponse incompatible with HttpServletResponse
1 parent 75cca87 commit 9a8085a

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

modules/transport/http/src/test/java/org/apache/axis2/transport/http/mock/MockHttpServletResponse.java

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,6 @@ public String encodeRedirectURL(String url) {
172172
return null;
173173
}
174174

175-
@Override
176-
public String encodeUrl(String url) {
177-
return null;
178-
}
179-
180-
@Override
181-
public String encodeRedirectUrl(String url) {
182-
return null;
183-
}
184-
185175
@Override
186176
public void sendError(int sc, String msg) throws IOException {
187177
}
@@ -194,6 +184,10 @@ public void sendError(int sc) throws IOException {
194184
public void sendRedirect(String location) throws IOException {
195185
}
196186

187+
@Override
188+
public void sendRedirect(String location, int sc, boolean clearBuffer) throws IOException {
189+
}
190+
197191
@Override
198192
public void setHeader(String name, String value) {
199193
System.out.println("MockHttpServletResponse.setHeader() , name: " +name+ " , value: " + value);
@@ -211,10 +205,6 @@ public void addHeader(String name, String value) {
211205
public void setStatus(int sc) {
212206
}
213207

214-
@Override
215-
public void setStatus(int sc, String sm) {
216-
}
217-
218208
@Override
219209
public String getContentType() {
220210
throw new UnsupportedOperationException();

0 commit comments

Comments
 (0)