Clover Coverage Report - Kuali Student 1.2-M5-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Aug 29 2011 05:04:27 EDT
../../../../../img/srcFileCovDistChart5.png 36% of files have more coverage
10   75   7   1.43
0   44   0.7   7
7     1  
1    
 
  AddOneAssembler       Line # 27 10 0% 7 10 41.2% 0.4117647
 
  (1)
 
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.assembly;
17   
18    import java.util.List;
19   
20    import org.apache.log4j.Logger;
21    import org.kuali.student.common.assembly.data.AssemblyException;
22    import org.kuali.student.common.assembly.data.Metadata;
23    import org.kuali.student.common.assembly.old.Assembler;
24    import org.kuali.student.common.assembly.old.data.SaveResult;
25    import org.kuali.student.common.validation.dto.ValidationResultInfo;
26   
 
27    public class AddOneAssembler implements Assembler<Integer,Integer>{
28    final Logger LOG = Logger.getLogger(AddOneAssembler.class);
29   
 
30  0 toggle @Override
31    public Integer assemble(Integer input) throws AssemblyException {
32    // TODO Auto-generated method stub
33  0 return null;
34    }
35   
 
36  0 toggle @Override
37    public Integer disassemble(Integer input) throws AssemblyException {
38    // TODO Auto-generated method stub
39  0 return null;
40    }
41   
 
42  2 toggle @Override
43    public Integer get(String id) throws AssemblyException {
44  2 return new Integer(1);
45    }
46   
 
47  0 toggle @Override
48    public Metadata getMetadata(String idType, String id, String type, String state)
49    throws AssemblyException {
50    // TODO Auto-generated method stub
51  0 return null;
52    }
53   
 
54  1 toggle @Override
55    public SaveResult<Integer> save(Integer input) throws AssemblyException {
56  1 LOG.info("Saving Result, adding 1 to input and returning. Input:"+input);
57  1 SaveResult<Integer> result = new SaveResult<Integer>();
58  1 result.setValue(input + 1);
59  1 return result;
60    }
61   
 
62  0 toggle @Override
63    public List<ValidationResultInfo> validate(Integer input)
64    throws AssemblyException {
65    // TODO Auto-generated method stub
66  0 return null;
67    }
68   
 
69  0 toggle @Override
70    public Metadata getDefaultMetadata() throws AssemblyException {
71    // TODO Auto-generated method stub
72  0 return null;
73    }
74   
75    }