@Test public void testBundleSymbolicNameConversion() { Artifact artifact = new DefaultArtifact("org.acme", "acme", "1.0", null, "jar", "", null); assertThat(DefaultMaven2OsgiConverter.getBundleSymbolicName(artifact)).isEqualTo("org.acme"); artifact = new DefaultArtifact("org.acme", "acme-api", "1.0", null, "jar", "", null); assertThat(DefaultMaven2OsgiConverter.getBundleSymbolicName(artifact)).isEqualTo("org.acme.api"); artifact = new DefaultArtifact("org.acme", "org.acme.api", "1.0", null, "jar", "", null); assertThat(DefaultMaven2OsgiConverter.getBundleSymbolicName(artifact)).isEqualTo("org.acme.api"); artifact = new DefaultArtifact("org.acme", "wisdom-api", "1.0", null, "jar", "", null); assertThat(DefaultMaven2OsgiConverter.getBundleSymbolicName(artifact)).isEqualTo("org.acme.wisdom.api"); }
public static String getBundleSymbolicName(Artifact artifact) { return getBundleSymbolicName(artifact.getGroupId(), artifact.getArtifactId()); }
DefaultMaven2OsgiConverter { public static String getBundleSymbolicName(Artifact artifact) { return getBundleSymbolicName(artifact.getGroupId(), artifact.getArtifactId()); } }
DefaultMaven2OsgiConverter { public static String getBundleSymbolicName(Artifact artifact) { return getBundleSymbolicName(artifact.getGroupId(), artifact.getArtifactId()); }  }
DefaultMaven2OsgiConverter { public static String getBundleSymbolicName(Artifact artifact) { return getBundleSymbolicName(artifact.getGroupId(), artifact.getArtifactId()); }  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 getBundleSymbolicName(Artifact artifact) { return getBundleSymbolicName(artifact.getGroupId(), artifact.getArtifactId()); }  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);  }