mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestOSGiConfigLoaderImpl.java
private List<PidConfig> createConfigList()
    {
        final List<StringMapEntry> configProps1 = new ArrayList<StringMapEntry>();
        configProps1.add(new StringMapEntry("someInt", "10"));
        configProps1.add(new StringMapEntry("someString", "value"));
        configProps1.add(new StringMapEntry("someShort", "89"));
        final PidConfig configOverride = new PidConfig(null, CONFIG_OVERRIDE, configProps1);
        
        final List<StringMapEntry> configProps2 = new ArrayList<StringMapEntry>();
        configProps2.add(new StringMapEntry("someFloat", "12.5"));
        configProps2.add(new StringMapEntry("someByte", "127"));
        configProps2.add(new StringMapEntry("someChar", "A"));
        final PidConfig configNoOverride = new PidConfig(null, CONFIG_NO_OVERRIDE, configProps2);
        
        final List<StringMapEntry> factoryConfigProps = new ArrayList<StringMapEntry>();
        factoryConfigProps.add(new StringMapEntry("someDouble", "15.55"));
        factoryConfigProps.add(new StringMapEntry("someBool", "true"));
        factoryConfigProps.add(new StringMapEntry("someLong", "1234567890"));
        final PidConfig factoryConfigNoOverride = new PidConfig(FACTORY_CONFIG_PID, null, 
                factoryConfigProps);
        
        final List<PidConfig> configs = new ArrayList<PidConfig>();
        configs.add(configOverride);
        configs.add(configNoOverride);
        configs.add(factoryConfigNoOverride);
        
        return configs;
    }
/**
     * Method that creates a list of pid configs to be used for testing purposes.
     */
Method that creates a list of pid configs to be used for testing purposes.
Method that creates a list of pid configs to be used for testing purposes .
private List<PidConfig> createConfigList()
    {
        final List<StringMapEntry> configProps1 = new ArrayList<StringMapEntry>();
        configProps1.add(new StringMapEntry("someInt", "10"));
        configProps1.add(new StringMapEntry("someString", "value"));
        configProps1.add(new StringMapEntry("someShort", "89"));
        final PidConfig configOverride = new PidConfig(null, CONFIG_OVERRIDE, configProps1);
        final List<StringMapEntry> configProps2 = new ArrayList<StringMapEntry>();
        configProps2.add(new StringMapEntry("someFloat", "12.5"));
        configProps2.add(new StringMapEntry("someByte", "127"));
        configProps2.add(new StringMapEntry("someChar", "A"));
        final PidConfig configNoOverride = new PidConfig(null, CONFIG_NO_OVERRIDE, configProps2);
        final List<StringMapEntry> factoryConfigProps = new ArrayList<StringMapEntry>();
        factoryConfigProps.add(new StringMapEntry("someDouble", "15.55"));
        factoryConfigProps.add(new StringMapEntry("someBool", "true"));
        factoryConfigProps.add(new StringMapEntry("someLong", "1234567890"));
        final PidConfig factoryConfigNoOverride = new PidConfig(FACTORY_CONFIG_PID, null, 
                factoryConfigProps);
        final List<PidConfig> configs = new ArrayList<PidConfig>();
        configs.add(configOverride);
        configs.add(configNoOverride);
        configs.add(factoryConfigNoOverride);
        return configs;
    }
private List < PidConfig > createConfigList ( ) { final List < StringMapEntry > configProps1 = new ArrayList < StringMapEntry > ( ) ; configProps1 . add ( new StringMapEntry ( "someInt" , "10" ) ) ; configProps1 . add ( new StringMapEntry ( "someString" , "value" ) ) ; configProps1 . add ( new StringMapEntry ( "someShort" , "89" ) ) ; final PidConfig configOverride = new PidConfig ( null , CONFIG_OVERRIDE , configProps1 ) ; final List < StringMapEntry > configProps2 = new ArrayList < StringMapEntry > ( ) ; configProps2 . add ( new StringMapEntry ( "someFloat" , "12.5" ) ) ; configProps2 . add ( new StringMapEntry ( "someByte" , "127" ) ) ; configProps2 . add ( new StringMapEntry ( "someChar" , "A" ) ) ; final PidConfig configNoOverride = new PidConfig ( null , CONFIG_NO_OVERRIDE , configProps2 ) ; final List < StringMapEntry > factoryConfigProps = new ArrayList < StringMapEntry > ( ) ; factoryConfigProps . add ( new StringMapEntry ( "someDouble" , "15.55" ) ) ; factoryConfigProps . add ( new StringMapEntry ( "someBool" , "true" ) ) ; factoryConfigProps . add ( new StringMapEntry ( "someLong" , "1234567890" ) ) ; final PidConfig factoryConfigNoOverride = new PidConfig ( FACTORY_CONFIG_PID , null , factoryConfigProps ) ; final List < PidConfig > configs = new ArrayList < PidConfig > ( ) ; configs . add ( configOverride ) ; configs . add ( configNoOverride ) ; configs . add ( factoryConfigNoOverride ) ; return configs ; }
Method that creates a list of pid configs to be used for testing purposes.
Method that creates a list of pid configs to be used for testing purposes .