Coverage Report - org.kuali.student.enrollment.class2.grading.assembler.GradeValuesGroupAssembler
 
Classes in this File Line Coverage Branch Coverage Complexity
GradeValuesGroupAssembler
0%
0/17
0%
0/2
2
 
 1  
 package org.kuali.student.enrollment.class2.grading.assembler;
 2  
 
 3  
 import org.kuali.student.enrollment.grading.dto.GradeValuesGroupInfo;
 4  
 import org.kuali.student.r2.common.assembler.AssemblyException;
 5  
 import org.kuali.student.r2.common.assembler.DTOAssembler;
 6  
 import org.kuali.student.r2.common.dto.ContextInfo;
 7  
 import org.kuali.student.r2.lum.lrc.dto.ResultValueInfo;
 8  
 import org.kuali.student.r2.lum.lrc.dto.ResultValuesGroupInfo;
 9  
 
 10  
 import java.util.List;
 11  
 
 12  0
 public class GradeValuesGroupAssembler implements DTOAssembler<GradeValuesGroupInfo, ResultValuesGroupInfo> {
 13  
 
 14  
         @Override
 15  
     public GradeValuesGroupInfo assemble(ResultValuesGroupInfo resultValuesGroupInfo, ContextInfo context) throws AssemblyException {
 16  0
         if(resultValuesGroupInfo != null){
 17  0
             GradeValuesGroupInfo gradeValuesGroupInfo = new GradeValuesGroupInfo();
 18  0
             resultValuesGroupInfo.setKey(resultValuesGroupInfo.getKey());
 19  0
             gradeValuesGroupInfo.setName(resultValuesGroupInfo.getName());
 20  0
             gradeValuesGroupInfo.setDescr(resultValuesGroupInfo.getDescr());
 21  0
             gradeValuesGroupInfo.setTypeKey(resultValuesGroupInfo.getTypeKey());
 22  0
             gradeValuesGroupInfo.setStateKey(resultValuesGroupInfo.getStateKey());
 23  0
             gradeValuesGroupInfo.setMeta(resultValuesGroupInfo.getMeta());
 24  0
             gradeValuesGroupInfo.setAttributes(resultValuesGroupInfo.getAttributes());
 25  0
             gradeValuesGroupInfo.setResultValueRange(resultValuesGroupInfo.getResultValueRange());
 26  
 
 27  0
             return gradeValuesGroupInfo;
 28  
         } else {
 29  0
             return null;
 30  
         }
 31  
     }
 32  
 
 33  
     public GradeValuesGroupInfo assemble(ResultValuesGroupInfo resultValuesGroupInfo, List<ResultValueInfo> resultValueInfos, ContextInfo context) throws AssemblyException {
 34  0
          GradeValuesGroupInfo gradeValuesGroupInfo = assemble(resultValuesGroupInfo,context);
 35  0
          gradeValuesGroupInfo.setResultValueInfos(resultValueInfos);
 36  0
          return gradeValuesGroupInfo;
 37  
     }
 38  
 
 39  
     @Override
 40  
     public ResultValuesGroupInfo disassemble(GradeValuesGroupInfo businessDTO, ContextInfo context) throws AssemblyException {
 41  0
         throw new UnsupportedOperationException("Method not implemented."); // TODO implement method
 42  
     }
 43  
 
 44  
  }