Clover Coverage Report - KS Common Test 1.1-SNAPSHOT
Coverage timestamp: Thu Mar 3 2011 04:44:30 EST
../../../../../../img/srcFileCovDistChart0.png 76% of files have more coverage
7   69   7   1
0   31   1   7
7     1  
1    
 
  MockProxyFactoryBean       Line # 22 7 0% 7 14 0% 0.0
 
No Tests
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.common.test.mock;
17   
18    import java.util.Map;
19   
20    import org.springframework.beans.factory.FactoryBean;
21   
 
22    public class MockProxyFactoryBean implements FactoryBean {
23    private Class<?> interfaceClass;
24    private Map<String,Object> methodReturnMap;
25   
 
26  0 toggle @Override
27    public Object getObject() throws Exception {
28  0 return MockProxy.newInstance(methodReturnMap, interfaceClass);
29    }
30   
 
31  0 toggle @Override
32    public Class<?> getObjectType() {
33  0 return interfaceClass;
34    }
35   
 
36  0 toggle @Override
37    public boolean isSingleton() {
38  0 return false;
39    }
40   
41    /**
42    * @return the interfaceClass
43    */
 
44  0 toggle public Class<?> getInterfaceClass() {
45  0 return interfaceClass;
46    }
47   
48    /**
49    * @param interfaceClass the interfaceClass to set
50    */
 
51  0 toggle public void setInterfaceClass(Class<?> interfaceClass) {
52  0 this.interfaceClass = interfaceClass;
53    }
54   
55    /**
56    * @return the methodReturnMap
57    */
 
58  0 toggle public Map<String, Object> getMethodReturnMap() {
59  0 return methodReturnMap;
60    }
61   
62    /**
63    * @param methodReturnMap the methodReturnMap to set
64    */
 
65  0 toggle public void setMethodReturnMap(Map<String, Object> methodReturnMap) {
66  0 this.methodReturnMap = methodReturnMap;
67    }
68   
69    }