Coverage Report - org.kuali.student.enrollment.class2.appointment.keyvalue.StudentGroupsFinder
 
Classes in this File Line Coverage Branch Coverage Complexity
StudentGroupsFinder
0%
0/9
0%
0/2
2
 
 1  
 /**
 2  
  * Copyright 2012 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  
  * Created by Daniel on 3/29/12
 16  
  */
 17  
 package org.kuali.student.enrollment.class2.appointment.keyvalue;
 18  
 
 19  
 import org.kuali.rice.core.api.util.ConcreteKeyValue;
 20  
 import org.kuali.rice.core.api.util.KeyValue;
 21  
 import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
 22  
 import org.kuali.rice.krad.uif.view.ViewModel;
 23  
 import org.kuali.student.r2.core.population.service.PopulationService;
 24  
 
 25  
 import java.io.Serializable;
 26  
 import java.util.ArrayList;
 27  
 import java.util.List;
 28  
 
 29  
 /**
 30  
  * This class //TODO ...
 31  
  *
 32  
  * @author Kuali Student Team
 33  
  */
 34  0
 public class StudentGroupsFinder extends UifKeyValuesFinderBase implements Serializable {
 35  
 
 36  
     private PopulationService populationService;
 37  
 
 38  0
     private String[][] mockData = new String[][]{{"POP1","Athletes"},
 39  
             {"POP2","Seniors"}};
 40  
     
 41  
     @Override
 42  
     public List<KeyValue> getKeyValues(ViewModel model) {
 43  0
         List<KeyValue> keyValues = new ArrayList<KeyValue>();
 44  
         
 45  0
         for(String[] data:mockData){
 46  0
             ConcreteKeyValue keyValue = new ConcreteKeyValue();
 47  0
             keyValue.setKey(data[0]);
 48  0
             keyValue.setValue(data[1]);
 49  0
             keyValues.add(keyValue);
 50  
         }
 51  
 
 52  0
         return keyValues;
 53  
     }
 54  
 }