|
Lines 15-30
import java.io.BufferedReader;
Link Here
|
| 15 |
import java.io.IOException; |
15 |
import java.io.IOException; |
| 16 |
import java.io.UnsupportedEncodingException; |
16 |
import java.io.UnsupportedEncodingException; |
| 17 |
import java.security.Principal; |
17 |
import java.security.Principal; |
|
|
18 |
import java.util.Collection; |
| 18 |
import java.util.Enumeration; |
19 |
import java.util.Enumeration; |
| 19 |
import java.util.HashMap; |
20 |
import java.util.HashMap; |
| 20 |
import java.util.Locale; |
21 |
import java.util.Locale; |
| 21 |
import java.util.Map; |
22 |
import java.util.Map; |
| 22 |
|
23 |
|
|
|
24 |
import javax.servlet.AsyncContext; |
| 25 |
import javax.servlet.DispatcherType; |
| 23 |
import javax.servlet.RequestDispatcher; |
26 |
import javax.servlet.RequestDispatcher; |
|
|
27 |
import javax.servlet.ServletContext; |
| 28 |
import javax.servlet.ServletException; |
| 24 |
import javax.servlet.ServletInputStream; |
29 |
import javax.servlet.ServletInputStream; |
|
|
30 |
import javax.servlet.ServletRequest; |
| 31 |
import javax.servlet.ServletResponse; |
| 25 |
import javax.servlet.http.Cookie; |
32 |
import javax.servlet.http.Cookie; |
| 26 |
import javax.servlet.http.HttpServletRequest; |
33 |
import javax.servlet.http.HttpServletRequest; |
|
|
34 |
import javax.servlet.http.HttpServletResponse; |
| 27 |
import javax.servlet.http.HttpSession; |
35 |
import javax.servlet.http.HttpSession; |
|
|
36 |
import javax.servlet.http.Part; |
| 28 |
|
37 |
|
| 29 |
/** |
38 |
/** |
| 30 |
* Class used for tests which require an HttpServletRequest parameter |
39 |
* Class used for tests which require an HttpServletRequest parameter |
|
Lines 318-321
public class MockServletRequest implements HttpServletRequest {
Link Here
|
| 318 |
|
327 |
|
| 319 |
} |
328 |
} |
| 320 |
|
329 |
|
|
|
330 |
public AsyncContext getAsyncContext() { |
| 331 |
// TODO Auto-generated method stub |
| 332 |
return null; |
| 333 |
} |
| 334 |
|
| 335 |
public DispatcherType getDispatcherType() { |
| 336 |
// TODO Auto-generated method stub |
| 337 |
return null; |
| 338 |
} |
| 339 |
|
| 340 |
public ServletContext getServletContext() { |
| 341 |
// TODO Auto-generated method stub |
| 342 |
return null; |
| 343 |
} |
| 344 |
|
| 345 |
public boolean isAsyncStarted() { |
| 346 |
// TODO Auto-generated method stub |
| 347 |
return false; |
| 348 |
} |
| 349 |
|
| 350 |
public boolean isAsyncSupported() { |
| 351 |
// TODO Auto-generated method stub |
| 352 |
return false; |
| 353 |
} |
| 354 |
|
| 355 |
public AsyncContext startAsync() { |
| 356 |
// TODO Auto-generated method stub |
| 357 |
return null; |
| 358 |
} |
| 359 |
|
| 360 |
public AsyncContext startAsync(ServletRequest arg0, ServletResponse arg1) { |
| 361 |
// TODO Auto-generated method stub |
| 362 |
return null; |
| 363 |
} |
| 364 |
|
| 365 |
public boolean authenticate(HttpServletResponse arg0) throws IOException, |
| 366 |
ServletException { |
| 367 |
// TODO Auto-generated method stub |
| 368 |
return false; |
| 369 |
} |
| 370 |
|
| 371 |
public Part getPart(String arg0) throws IOException, IllegalStateException, |
| 372 |
ServletException { |
| 373 |
// TODO Auto-generated method stub |
| 374 |
return null; |
| 375 |
} |
| 376 |
|
| 377 |
public Collection<Part> getParts() throws IOException, |
| 378 |
IllegalStateException, ServletException { |
| 379 |
// TODO Auto-generated method stub |
| 380 |
return null; |
| 381 |
} |
| 382 |
|
| 383 |
public void login(String arg0, String arg1) throws ServletException { |
| 384 |
// TODO Auto-generated method stub |
| 385 |
|
| 386 |
} |
| 387 |
|
| 388 |
public void logout() throws ServletException { |
| 389 |
// TODO Auto-generated method stub |
| 390 |
|
| 391 |
} |
| 392 |
|
| 321 |
} |
393 |
} |