Clover Coverage Report - Kuali Student 1.2-M6-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Sep 12 2011 05:03:53 EDT
../../../../../../../img/srcFileCovDistChart0.png 42% of files have more coverage
5   39   4   1.25
0   20   0.8   4
4     1  
1    
 
  ConfigurationManager       Line # 17 5 0% 4 9 0% 0.0
 
No Tests
 
1    package org.kuali.student.lum.common.client.configuration;
2   
3    import org.kuali.student.common.ui.client.configurable.mvc.Configurer;
4   
5    import java.util.ArrayList;
6    import java.util.HashMap;
7   
8    /**
9    * This class manages configurations. We should create a repository of all ConfigurationManagers and let universities
10    * register new configuration, remove already defined configuration or change the order in which they appear on the
11    * ui.
12    *
13    * @author Igor
14    * @see Configuration
15    * @see AbstractConfiguration
16    */
 
17    public class ConfigurationManager {
18   
19    private ArrayList<Configuration> configurations = new ArrayList<Configuration>();
20   
21    private Configurer configurer;
22   
 
23  0 toggle public ConfigurationManager(Configurer configurer) {
24  0 this.configurer = configurer;
25    }
26   
 
27  0 toggle public void registerConfiguration(Configuration configuration) {
28  0 configurations.add(configuration);
29  0 setConfigurerOn(configuration);
30    }
31   
 
32  0 toggle public ArrayList<Configuration> getConfigurations() {
33  0 return configurations;
34    }
35   
 
36  0 toggle private void setConfigurerOn(Configuration configuration) {
37  0 configuration.setConfigurer(configurer);
38    }
39    }