| 1 | 
    
            
    
     | 
    
           | 
  
            
  
    | 2 | 
    
            
    
     | 
    
           | 
  
            
  
    | 3 | 
    
            
    
     | 
    
           | 
  
            
  
    | 4 | 
    
            
    
     | 
    
           | 
  
            
  
    | 5 | 
    
            
    
     | 
    
           | 
  
            
  
    | 6 | 
    
            
    
     | 
    
           | 
  
            
  
    | 7 | 
    
            
    
     | 
    
           | 
  
            
  
    | 8 | 
    
            
    
     | 
    
           | 
  
            
  
    | 9 | 
    
            
    
     | 
    
           | 
  
            
  
    | 10 | 
    
            
    
     | 
    
           | 
  
            
  
    | 11 | 
    
            
    
     | 
    
           | 
  
            
  
    | 12 | 
    
            
    
     | 
    
           | 
  
            
  
    | 13 | 
    
            
    
     | 
    
           | 
  
            
  
    | 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 | 
    
            
    
     | 
    
           | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 41.2% | 
           Uncovered Elements: 10 (17) | 
           Complexity: 7 | 
           Complexity Density: 0.7 | 
                        
            
        | 
    
  
  
    | 27 | 
    
            
    
     | 
    
      public class AddOneAssembler implements Assembler<Integer,Integer>{     | 
  
            
  
    | 28 | 
    
            
    
     | 
    
          final Logger LOG = Logger.getLogger(AddOneAssembler.class);     | 
  
            
  
    | 29 | 
    
            
    
     | 
    
               | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 0% | 
           Uncovered Elements: 1 (1) | 
           Complexity: 1 | 
           Complexity Density: 1 | 
                        
            
        | 
    
  
  
    | 30 | 
    
           0
    
     | 
    
           @Override...     | 
  
            
  
    | 31 | 
    
            
    
     | 
    
          public Integer assemble(Integer input) throws AssemblyException {     | 
  
            
  
    | 32 | 
    
            
    
     | 
    
                   | 
  
            
  
    | 33 | 
    
           0
    
     | 
    
              return null;     | 
  
            
  
    | 34 | 
    
            
    
     | 
    
          }     | 
  
            
  
    | 35 | 
    
            
    
     | 
    
           | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 0% | 
           Uncovered Elements: 1 (1) | 
           Complexity: 1 | 
           Complexity Density: 1 | 
                        
            
        | 
    
  
  
    | 36 | 
    
           0
    
     | 
    
           @Override...     | 
  
            
  
    | 37 | 
    
            
    
     | 
    
          public Integer disassemble(Integer input) throws AssemblyException {     | 
  
            
  
    | 38 | 
    
            
    
     | 
    
                   | 
  
            
  
    | 39 | 
    
           0
    
     | 
    
              return null;     | 
  
            
  
    | 40 | 
    
            
    
     | 
    
          }     | 
  
            
  
    | 41 | 
    
            
    
     | 
    
           | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 100% | 
           Uncovered Elements: 0 (1) | 
           Complexity: 1 | 
           Complexity Density: 1 | 
                        
            
        | 
    
  
  
    | 42 | 
    
           2
    
     | 
    
           @Override...     | 
  
            
  
    | 43 | 
    
            
    
     | 
    
          public Integer get(String id) throws AssemblyException {     | 
  
            
  
    | 44 | 
    
           2
    
     | 
    
              return new Integer(1);     | 
  
            
  
    | 45 | 
    
            
    
     | 
    
          }     | 
  
            
  
    | 46 | 
    
            
    
     | 
    
           | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 0% | 
           Uncovered Elements: 1 (1) | 
           Complexity: 1 | 
           Complexity Density: 1 | 
                        
            
        | 
    
  
  
    | 47 | 
    
           0
    
     | 
    
           @Override...     | 
  
            
  
    | 48 | 
    
            
    
     | 
    
          public Metadata getMetadata(String idType, String id, String type, String state)     | 
  
            
  
    | 49 | 
    
            
    
     | 
    
                  throws AssemblyException {     | 
  
            
  
    | 50 | 
    
            
    
     | 
    
                   | 
  
            
  
    | 51 | 
    
           0
    
     | 
    
              return null;     | 
  
            
  
    | 52 | 
    
            
    
     | 
    
          }     | 
  
            
  
    | 53 | 
    
            
    
     | 
    
           | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 100% | 
           Uncovered Elements: 0 (4) | 
           Complexity: 1 | 
           Complexity Density: 0.25 | 
                        
            
        | 
    
  
  
    | 54 | 
    
           1
    
     | 
    
           @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 | 
    
            
    
     | 
    
           | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 0% | 
           Uncovered Elements: 1 (1) | 
           Complexity: 1 | 
           Complexity Density: 1 | 
                        
            
        | 
    
  
  
    | 62 | 
    
           0
    
     | 
    
           @Override...     | 
  
            
  
    | 63 | 
    
            
    
     | 
    
          public List<ValidationResultInfo> validate(Integer input)     | 
  
            
  
    | 64 | 
    
            
    
     | 
    
                  throws AssemblyException {     | 
  
            
  
    | 65 | 
    
            
    
     | 
    
                   | 
  
            
  
    | 66 | 
    
           0
    
     | 
    
              return null;     | 
  
            
  
    | 67 | 
    
            
    
     | 
    
          }     | 
  
            
  
    | 68 | 
    
            
    
     | 
    
           | 
  
               
        | 
             
         | 
        
       
        | 
       
           
           
            | 0% | 
           Uncovered Elements: 1 (1) | 
           Complexity: 1 | 
           Complexity Density: 1 | 
                        
            
        | 
    
  
  
    | 69 | 
    
           0
    
     | 
    
           @Override...     | 
  
            
  
    | 70 | 
    
            
    
     | 
    
          public Metadata getDefaultMetadata() throws AssemblyException {     | 
  
            
  
    | 71 | 
    
            
    
     | 
    
                   | 
  
            
  
    | 72 | 
    
           0
    
     | 
    
              return null;     | 
  
            
  
    | 73 | 
    
            
    
     | 
    
          }     | 
  
            
  
    | 74 | 
    
            
    
     | 
    
           | 
  
            
  
    | 75 | 
    
            
    
     | 
    
      }     |