You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refact: Factory for mock implementations of Servlet API objects
* feat: Produce HttpServletResponse only in request scope
* chore: Minimize implementation of the LifecycleAwareRequest by relying on HttpServletRequestWrapper
* feat: Extract module for Servlet API 3.0 support
* refact: Replace usages of Weld exceptions
* refact: Remove NestedApplicationException and usages
* feat: Implements mocks for Servlet API 3.1
* ci: Define CI matrix for Servlet API tests
* build: Add cdi-unit-servlet30 when performing a release
* build: Add cdi-unit-servlet30 to published JavaDoc
Copy file name to clipboardexpand all lines: cdi-unit-servlet30/src/main/java/io/github/cdiunit/internal/servlet/MockHttpServletResponseImpl.java
+29-33
Original file line number
Diff line number
Diff line change
@@ -15,33 +15,24 @@
15
15
*/
16
16
packageio.github.cdiunit.internal.servlet;
17
17
18
-
importjava.io.IOException;
19
-
importjava.io.OutputStreamWriter;
20
-
importjava.io.PrintWriter;
21
-
importjava.io.UnsupportedEncodingException;
22
-
importjava.text.SimpleDateFormat;
23
-
importjava.util.ArrayList;
24
-
importjava.util.Collection;
25
-
importjava.util.Date;
26
-
importjava.util.List;
27
-
importjava.util.Locale;
28
-
importjava.util.Map;
29
-
importjava.util.TimeZone;
30
-
importjava.util.TreeMap;
31
-
32
18
importjavax.servlet.ServletOutputStream;
33
19
importjavax.servlet.http.Cookie;
34
20
importjavax.servlet.http.HttpServletResponse;
35
21
22
+
importjava.io.*;
23
+
importjava.text.SimpleDateFormat;
24
+
importjava.util.*;
25
+
importjava.util.function.Supplier;
26
+
36
27
/**
37
28
* Shamlessly ripped from mockrunner. If mockrunner supports servlet 3.1 https://github.com/mockrunner/mockrunner/issues/4 then this class can extend mockrunner instead.
* Shamlessly ripped from mockrunner. If mockrunner supports servlet 3.1 https://github.com/mockrunner/mockrunner/issues/4 then this class can extend mockrunner instead.
@@ -44,13 +33,12 @@ public class MockHttpSessionImpl implements HttpSession {
0 commit comments