@Test public void testLoad() { final Map<String, String> preferences = loader.load(); assertNotNull( preferences ); assertEquals( KieMeta.isProductized(), Boolean.parseBoolean( preferences.get( ApplicationPreferences.KIE_PRODUCTIZED ) ) ); }
@Override public Map<String, String> load() { final Map<String, String> preferences = new HashMap<String, String>(); final boolean isProductized = KieMeta.isProductized(); log.info( "Setting preference '" + ApplicationPreferences.KIE_PRODUCTIZED + "' to '" + Boolean.toString( isProductized ) + "'." ); preferences.put( ApplicationPreferences.KIE_PRODUCTIZED, Boolean.toString( isProductized ) ); return preferences; }
KieMetaDataPreferencesLoader implements ApplicationPreferencesLoader { @Override public Map<String, String> load() { final Map<String, String> preferences = new HashMap<String, String>(); final boolean isProductized = KieMeta.isProductized(); log.info( "Setting preference '" + ApplicationPreferences.KIE_PRODUCTIZED + "' to '" + Boolean.toString( isProductized ) + "'." ); preferences.put( ApplicationPreferences.KIE_PRODUCTIZED, Boolean.toString( isProductized ) ); return preferences; } }
KieMetaDataPreferencesLoader implements ApplicationPreferencesLoader { @Override public Map<String, String> load() { final Map<String, String> preferences = new HashMap<String, String>(); final boolean isProductized = KieMeta.isProductized(); log.info( "Setting preference '" + ApplicationPreferences.KIE_PRODUCTIZED + "' to '" + Boolean.toString( isProductized ) + "'." ); preferences.put( ApplicationPreferences.KIE_PRODUCTIZED, Boolean.toString( isProductized ) ); return preferences; }  }
KieMetaDataPreferencesLoader implements ApplicationPreferencesLoader { @Override public Map<String, String> load() { final Map<String, String> preferences = new HashMap<String, String>(); final boolean isProductized = KieMeta.isProductized(); log.info( "Setting preference '" + ApplicationPreferences.KIE_PRODUCTIZED + "' to '" + Boolean.toString( isProductized ) + "'." ); preferences.put( ApplicationPreferences.KIE_PRODUCTIZED, Boolean.toString( isProductized ) ); return preferences; }  @Override Map<String, String> load(); }
KieMetaDataPreferencesLoader implements ApplicationPreferencesLoader { @Override public Map<String, String> load() { final Map<String, String> preferences = new HashMap<String, String>(); final boolean isProductized = KieMeta.isProductized(); log.info( "Setting preference '" + ApplicationPreferences.KIE_PRODUCTIZED + "' to '" + Boolean.toString( isProductized ) + "'." ); preferences.put( ApplicationPreferences.KIE_PRODUCTIZED, Boolean.toString( isProductized ) ); return preferences; }  @Override Map<String, String> load();  }