1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.struts.chain.contexts;
22
23 import java.util.HashMap;
24 import java.util.Map;
25
26
27
28
29
30
31
32
33 public class MockActionContext extends ActionContextBase {
34 private Map<String, Object> applicationScope = new HashMap<>();
35 private Map<String, Object> requestScope = new HashMap<>();
36 private Map<String, Object> sessionScope = new HashMap<>();
37 private Map<String, String[]> parameterMap = new HashMap<>();
38
39 public Map<String, Object> getApplicationScope() {
40 return applicationScope;
41 }
42
43 public void setApplicationScope(Map<String, Object> applicationScope) {
44 this.applicationScope = applicationScope;
45 }
46
47 public Map<String, String[]> getParameterMap() {
48 return parameterMap;
49 }
50
51 public void setParameterMap(Map<String, String[]> parameterMap) {
52 this.parameterMap = parameterMap;
53 }
54
55 public Map<String, Object> getRequestScope() {
56 return requestScope;
57 }
58
59 public void setRequestScope(Map<String, Object> requestScope) {
60 this.requestScope = requestScope;
61 }
62
63 public Map<String, Object> getSessionScope() {
64 return sessionScope;
65 }
66
67 public void setSessionScope(Map<String, Object> sessionScope) {
68 this.sessionScope = sessionScope;
69 }
70 }