@Test public void testVersionConversion() { assertThat(DefaultMaven2OsgiConverter.getVersion("1.0")).isEqualTo("1.0.0"); assertThat(DefaultMaven2OsgiConverter.getVersion("1.0.0")).isEqualTo("1.0.0"); assertThat(DefaultMaven2OsgiConverter.getVersion("1")).isEqualTo("1.0.0"); assertThat(DefaultMaven2OsgiConverter.getVersion("1.0-SNAPSHOT")).isEqualTo("1.0.0.SNAPSHOT"); assertThat(DefaultMaven2OsgiConverter.getVersion("1.0-1.0-20131224.083751-42")) .isEqualTo("1.0.0.1_0-20131224_083751-42"); assertThat(DefaultMaven2OsgiConverter.getVersion("alpha")).isEqualTo("0.0.0.alpha"); assertThat(DefaultMaven2OsgiConverter.getVersion("1.0-alpha")).isEqualTo("1.0.0.alpha"); assertThat(DefaultMaven2OsgiConverter.getVersion("1.0.0-RC1")).isEqualTo("1.0.0.RC1"); assertThat(DefaultMaven2OsgiConverter.getVersion("1.0-RC-1")).isEqualTo("1.0.0.RC-1"); }
public static String getVersion(String version) { return cleanupVersion(version); }
DefaultMaven2OsgiConverter { public static String getVersion(String version) { return cleanupVersion(version); } }
DefaultMaven2OsgiConverter { public static String getVersion(String version) { return cleanupVersion(version); }  }
DefaultMaven2OsgiConverter { public static String getVersion(String version) { return cleanupVersion(version); }  static String getBundleFileName(String groupId, String artifactId, String version); static String getBundleFileName(MavenProject project); static String getBundleFileName(Artifact artifact); static String getBundleSymbolicName(Artifact artifact); static String getBundleSymbolicName(String groupId, String artifactId); static String getVersion(String version); static String cleanupVersion(String version); }
DefaultMaven2OsgiConverter { public static String getVersion(String version) { return cleanupVersion(version); }  static String getBundleFileName(String groupId, String artifactId, String version); static String getBundleFileName(MavenProject project); static String getBundleFileName(Artifact artifact); static String getBundleSymbolicName(Artifact artifact); static String getBundleSymbolicName(String groupId, String artifactId); static String getVersion(String version); static String cleanupVersion(String version);  }