2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

Coverage Report - org.apache.shale.test.mock.MockStateManager
 
Classes in this File Line Coverage Branch Coverage Complexity
MockStateManager
100%
2/2
N/A
1.875
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to you under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 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  
     // ------------------------------------------------------------ Constructors
 35  
 
 36  
 
 37  
     /**
 38  
      * <p>Construct a default instance.</p>
 39  
      */
 40  18
     public MockStateManager() {
 41  18
     }
 42  
 
 43  
 
 44  
     // ----------------------------------------------------- Mock Object Methods
 45  
 
 46  
 
 47  
     // ------------------------------------------------------ Instance Variables
 48  
 
 49  
 
 50  
     // ---------------------------------------------------- StateManager Methods
 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  
 }