2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic. 
1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  
17  
18  package org.apache.shale.test.mock;
19  
20  import java.io.IOException;
21  
22  import javax.faces.application.StateManager;
23  import javax.faces.component.UIViewRoot;
24  import javax.faces.context.FacesContext;
25  
26  /***
27   * <p>Mock implementation of <code>StateManager</code>.</p>
28   *
29   * $Id$
30   */
31  public class MockStateManager extends StateManager {
32  
33  
34      
35  
36  
37      /***
38       * <p>Construct a default instance.</p>
39       */
40      public MockStateManager() {
41      }
42  
43  
44      
45  
46  
47      
48  
49  
50      
51  
52  
53      /*** {@inheritDoc} */
54      public SerializedView saveSerializedView(FacesContext context) {
55  
56          throw new UnsupportedOperationException();
57  
58      }
59  
60  
61      /*** {@inheritDoc} */
62      public Object getTreeStructureToSave(FacesContext context) {
63  
64          throw new UnsupportedOperationException();
65  
66      }
67  
68  
69      /*** {@inheritDoc} */
70      public Object getComponentStateToSave(FacesContext context) {
71  
72          throw new UnsupportedOperationException();
73  
74      }
75  
76  
77      /*** {@inheritDoc} */
78      public void writeState(FacesContext context, SerializedView view)
79        throws IOException {
80  
81          throw new UnsupportedOperationException();
82  
83      }
84  
85  
86      /*** {@inheritDoc} */
87      public UIViewRoot restoreView(FacesContext context, String viewId,
88                                    String renderKitId) {
89  
90          throw new UnsupportedOperationException();
91  
92      }
93  
94  
95      /*** {@inheritDoc} */
96      public UIViewRoot restoreTreeStructure(FacesContext context, String viewId,
97                                             String renderKitId) {
98  
99          throw new UnsupportedOperationException();
100 
101     }
102 
103 
104     /*** {@inheritDoc} */
105     public void restoreComponentState(FacesContext context, UIViewRoot view,
106                                       String renderKitId) {
107 
108         throw new UnsupportedOperationException();
109 
110     }
111 
112 
113 }