Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 355565
Collapse All | Expand All

(-)a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletRequest.java (+72 lines)
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
}
(-)a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletResponse.java (+21 lines)
Lines 14-19 package org.eclipse.ua.tests.help.webapp; Link Here
14
import java.io.IOException;
14
import java.io.IOException;
15
import java.io.PrintWriter;
15
import java.io.PrintWriter;
16
import java.util.ArrayList;
16
import java.util.ArrayList;
17
import java.util.Collection;
17
import java.util.List;
18
import java.util.List;
18
import java.util.Locale;
19
import java.util.Locale;
19
20
Lines 201-206 public class MockServletResponse implements HttpServletResponse { Link Here
201
	public String getIllegalCharatersFound() {
202
	public String getIllegalCharatersFound() {
202
		return illegalCharactersFound;
203
		return illegalCharactersFound;
203
	}
204
	}
205
206
	public String getHeader(String arg0) {
207
		// TODO Auto-generated method stub
208
		return null;
209
	}
210
211
	public Collection<String> getHeaderNames() {
212
		// TODO Auto-generated method stub
213
		return null;
214
	}
215
216
	public Collection<String> getHeaders(String arg0) {
217
		// TODO Auto-generated method stub
218
		return null;
219
	}
220
221
	public int getStatus() {
222
		// TODO Auto-generated method stub
223
		return 0;
224
	}
204
	
225
	
205
	
226
	
206
}
227
}

Return to bug 355565