Coverage Report - org.seasar.teeda.core.mock.MockSingleConstructorPropertyResolver
 
Classes in this File Line Coverage Branch Coverage Complexity
MockSingleConstructorPropertyResolver
33%
4/12
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.teeda.core.mock;
 17  
 
 18  
 import javax.faces.el.EvaluationException;
 19  
 import javax.faces.el.PropertyNotFoundException;
 20  
 import javax.faces.el.PropertyResolver;
 21  
 
 22  
 /**
 23  
  * @author shot
 24  
  */
 25  
 public class MockSingleConstructorPropertyResolver extends PropertyResolver {
 26  
 
 27  
     private PropertyResolver originalResolver_;
 28  
 
 29  1
     public MockSingleConstructorPropertyResolver(PropertyResolver original) {
 30  1
         originalResolver_ = original;
 31  1
     }
 32  
 
 33  
     public Class getType(Object base, int index) throws EvaluationException,
 34  
             PropertyNotFoundException {
 35  0
         return originalResolver_.getType(base, index);
 36  
     }
 37  
 
 38  
     public Class getType(Object base, Object property)
 39  
             throws EvaluationException, PropertyNotFoundException {
 40  0
         return originalResolver_.getType(base, property);
 41  
     }
 42  
 
 43  
     public Object getValue(Object base, int index) throws EvaluationException,
 44  
             PropertyNotFoundException {
 45  0
         return originalResolver_.getValue(base, index);
 46  
     }
 47  
 
 48  
     public Object getValue(Object base, Object property)
 49  
             throws EvaluationException, PropertyNotFoundException {
 50  0
         return originalResolver_.getValue(base, property);
 51  
     }
 52  
 
 53  
     public boolean isReadOnly(Object base, int index)
 54  
             throws EvaluationException, PropertyNotFoundException {
 55  0
         return originalResolver_.isReadOnly(base, index);
 56  
     }
 57  
 
 58  
     public boolean isReadOnly(Object base, Object property)
 59  
             throws EvaluationException, PropertyNotFoundException {
 60  0
         return originalResolver_.isReadOnly(base, property);
 61  
     }
 62  
 
 63  
     public void setValue(Object base, int index, Object value)
 64  
             throws EvaluationException, PropertyNotFoundException {
 65  0
     }
 66  
 
 67  
     public void setValue(Object base, Object property, Object value)
 68  
             throws EvaluationException, PropertyNotFoundException {
 69  0
     }
 70  
 
 71  
     public PropertyResolver getOriginal() {
 72  1
         return originalResolver_;
 73  
     }
 74  
 }