@Test public void testIsNotConnectorJar() { String path = workingDir + "/src/test/resources/test-non-connector.jar"; File file = new File(path); assertTrue(file.exists()); assertFalse(ConnectorManagerUtils.isConnectorJar(file)); }
static boolean isConnectorJar(File file) { try { JarEntry entry = new JarFile(file) .getJarEntry(ConfigurationConstants.FILENAME_CONNECTOR_PROPERTIES); return entry != null; } catch (IOException e) { throw new RuntimeException(e); } }
ConnectorManagerUtils { static boolean isConnectorJar(File file) { try { JarEntry entry = new JarFile(file) .getJarEntry(ConfigurationConstants.FILENAME_CONNECTOR_PROPERTIES); return entry != null; } catch (IOException e) { throw new RuntimeException(e); } } }
ConnectorManagerUtils { static boolean isConnectorJar(File file) { try { JarEntry entry = new JarFile(file) .getJarEntry(ConfigurationConstants.FILENAME_CONNECTOR_PROPERTIES); return entry != null; } catch (IOException e) { throw new RuntimeException(e); } }  }
ConnectorManagerUtils { static boolean isConnectorJar(File file) { try { JarEntry entry = new JarFile(file) .getJarEntry(ConfigurationConstants.FILENAME_CONNECTOR_PROPERTIES); return entry != null; } catch (IOException e) { throw new RuntimeException(e); } }  static List<URL> getConnectorConfigs(); static Set<File> getConnectorJars(String path); static void addExternalConnectorsJarsToClasspath(String path); }
ConnectorManagerUtils { static boolean isConnectorJar(File file) { try { JarEntry entry = new JarFile(file) .getJarEntry(ConfigurationConstants.FILENAME_CONNECTOR_PROPERTIES); return entry != null; } catch (IOException e) { throw new RuntimeException(e); } }  static List<URL> getConnectorConfigs(); static Set<File> getConnectorJars(String path); static void addExternalConnectorsJarsToClasspath(String path);  }