Coverage Report - org.seasar.teeda.core.mock.MockDataModel
 
Classes in this File Line Coverage Branch Coverage Complexity
MockDataModel
63%
12/19
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.model.DataModel;
 19  
 
 20  
 public class MockDataModel extends DataModel {
 21  
 
 22  
     private String name_;
 23  
 
 24  
     private int rowCount_;
 25  
 
 26  
     private Object rowData_;
 27  
 
 28  
     private boolean rowAvailable_;
 29  
 
 30  18
     public MockDataModel() {
 31  18
     }
 32  
 
 33  0
     public MockDataModel(String name) {
 34  0
         name_ = name;
 35  0
     }
 36  
 
 37  
     public int getRowCount() {
 38  3
         return rowCount_;
 39  
     }
 40  
 
 41  
     public Object getRowData() {
 42  3
         return rowData_;
 43  
     }
 44  
 
 45  
     public int getRowIndex() {
 46  0
         return 0;
 47  
     }
 48  
 
 49  
     public Object getWrappedData() {
 50  0
         return null;
 51  
     }
 52  
 
 53  
     public boolean isRowAvailable() {
 54  6
         return rowAvailable_;
 55  
     }
 56  
 
 57  
     public String toString() {
 58  0
         return name_;
 59  
     }
 60  
 
 61  
     public void setRowIndex(int rowIndex) {
 62  12
     }
 63  
 
 64  
     public void setWrappedData(Object data) {
 65  0
     }
 66  
 
 67  
     public void setRowCount(int rowCount) {
 68  3
         rowCount_ = rowCount;
 69  3
     }
 70  
 
 71  
     public void setRowData(Object rowData) {
 72  3
         rowData_ = rowData;
 73  3
     }
 74  
 
 75  
     public void setRowAvailable(boolean rowAvailable) {
 76  6
         rowAvailable_ = rowAvailable;
 77  6
     }
 78  
 
 79  
 }