ConfigurationUtils { public static File findIcon( String name, String qualifier, File configurationDirectory ) { if( configurationDirectory == null ) return null; File root; if( ! Utils.isEmptyOrWhitespaces( qualifier )) { ApplicationTemplate tpl = new ApplicationTemplate( name ).version( qualifier ); root = ConfigurationUtils.findTemplateDirectory( tpl, configurationDirectory ); } else { root = ConfigurationUtils.findApplicationDirectory( name, configurationDirectory ); } return IconUtils.findIcon( root ); } private  ConfigurationUtils(); static File findApplicationDirectory( String applicationName, File configurationDirectory ); static File findTemplateDirectory( ApplicationTemplate tpl, File configurationDirectory ); static void saveInstances( ManagedApplication ma ); static void saveInstances( Application app ); static InstancesLoadResult restoreInstances( ManagedApplication ma ); static File findIcon( String name, String qualifier, File configurationDirectory ); static void loadApplicationBindings( Application app ); static void saveApplicationBindings( Application app ); static final String TEMPLATES; static final String APPLICATIONS; static final String TARGETS; static final String INSTANCES_FILE; static final String APP_BINDINGS_FILE; static final String TARGETS_ASSOC_FILE; static final String TARGETS_HINTS_SUFFIX; static final String TARGETS_USAGE_SUFFIX; }
@Test public void testFindIcon_nullConfigDirectory() throws Exception { Assert.assertNull( ConfigurationUtils.findIcon( "app", "v1", null )); }