@Test public void testFindJarFiles_ExceptionThrows() { String nullFolder = null; String expectedMessage = "Unable to list jar files in plugin folder '" + nullFolder + "'"; plFolder = new PluginFolder( nullFolder, false, true ); try { plFolder.findJarFiles(); fail( "KettleFileException was not occured but expected." ); } catch ( KettleFileException e ) { assertTrue( e instanceof KettleFileException ); assertTrue( e.getLocalizedMessage().trim().startsWith( expectedMessage ) ); } }
@Override public FileObject[] findJarFiles() throws KettleFileException { return findJarFiles( searchLibDir ); }
PluginFolder implements PluginFolderInterface { @Override public FileObject[] findJarFiles() throws KettleFileException { return findJarFiles( searchLibDir ); } }
PluginFolder implements PluginFolderInterface { @Override public FileObject[] findJarFiles() throws KettleFileException { return findJarFiles( searchLibDir ); } PluginFolder( String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder );  PluginFolder( String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder,
    boolean searchLibDir ); }
PluginFolder implements PluginFolderInterface { @Override public FileObject[] findJarFiles() throws KettleFileException { return findJarFiles( searchLibDir ); } PluginFolder( String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder );  PluginFolder( String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder,
    boolean searchLibDir ); @Override String toString(); static List<PluginFolderInterface> populateFolders( String xmlSubfolder ); @Override FileObject[] findJarFiles(); FileObject[] findJarFiles( final boolean includeLibJars ); @Override String getFolder(); void setFolder( String folder ); @Override boolean isPluginXmlFolder(); void setPluginXmlFolder( boolean pluginXmlFolder ); @Override boolean isPluginAnnotationsFolder(); void setPluginAnnotationsFolder( boolean pluginAnnotationsFolder ); }
PluginFolder implements PluginFolderInterface { @Override public FileObject[] findJarFiles() throws KettleFileException { return findJarFiles( searchLibDir ); } PluginFolder( String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder );  PluginFolder( String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder,
    boolean searchLibDir ); @Override String toString(); static List<PluginFolderInterface> populateFolders( String xmlSubfolder ); @Override FileObject[] findJarFiles(); FileObject[] findJarFiles( final boolean includeLibJars ); @Override String getFolder(); void setFolder( String folder ); @Override boolean isPluginXmlFolder(); void setPluginXmlFolder( boolean pluginXmlFolder ); @Override boolean isPluginAnnotationsFolder(); void setPluginAnnotationsFolder( boolean pluginAnnotationsFolder );  }