@Test(groups = "fast") public void testExtractVersion() throws IOException { final JRubyJarHelper jRubyJarHelper = new JRubyJarHelper(null, null); final Properties props = new Properties(); final InputStream stream = new ByteArrayInputStream(POM_PROPERTIES_CONTENT.getBytes(StandardCharsets.UTF_8)); props.load(stream); Assert.assertEquals(jRubyJarHelper.extractVersion(props), "0.22-SNAPSHOT"); }
@VisibleForTesting String extractVersion(final Properties properties) { return (String) properties.get("version"); }
JRubyJarHelper { @VisibleForTesting String extractVersion(final Properties properties) { return (String) properties.get("version"); } }
JRubyJarHelper { @VisibleForTesting String extractVersion(final Properties properties) { return (String) properties.get("version"); } JRubyJarHelper(final String platformOSGIBundlesRootDir, @Nullable final KillbillNodesApi nodesApi); }
JRubyJarHelper { @VisibleForTesting String extractVersion(final Properties properties) { return (String) properties.get("version"); } JRubyJarHelper(final String platformOSGIBundlesRootDir, @Nullable final KillbillNodesApi nodesApi); String getAndValidateJrubyJarPath(); }
JRubyJarHelper { @VisibleForTesting String extractVersion(final Properties properties) { return (String) properties.get("version"); } JRubyJarHelper(final String platformOSGIBundlesRootDir, @Nullable final KillbillNodesApi nodesApi); String getAndValidateJrubyJarPath();  }