"src/test/repo-with-osgi/org/apache/karaf/features/org.apache.karaf.features.command/2.2.2/org.apache.karaf.features.command-2.2.2.jar" );
File pom = new File( getBasedir(),
"src/test/repo-with-osgi/org/apache/karaf/features/org.apache.karaf.features.command/2.2.2/org.apache.karaf.features.command-2.2.2.pom" );
ArtifactInfo artifactInfo =
new ArtifactInfo( "test", "org.apache.karaf.features", "org.apache.karaf.features.command", "2.2.2", null );
ArtifactContext artifactContext = new ArtifactContext( pom, artifact, null, artifactInfo, null );
indexCreator.populateArtifactInfo( artifactContext );
assertNotNull( "bundleSymbolicName", artifactContext.getArtifactInfo().bundleSymbolicName );
assertNotNull( "bundleVersion", artifactContext.getArtifactInfo().bundleVersion );
assertNotNull( "bundleExportPackage", artifactContext.getArtifactInfo().bundleExportPackage );
assertEquals( "org.apache.karaf.features.command", artifactContext.getArtifactInfo().bundleSymbolicName );
assertEquals( "2.2.2", artifactContext.getArtifactInfo().bundleVersion );
assertEquals(
"org.apache.karaf.features.command.completers;uses:=\"org.apache.karaf.features,org.apache.karaf.shell.console,org.apache.karaf.shell.console.completer\";version=\"2.2.2\",org.apache.karaf.features.command;uses:=\"org.apache.felix.gogo.commands,org.apache.karaf.features,org.apache.karaf.shell.console,org.osgi.framework,org.apache.felix.service.command\";version=\"2.2.2\"",
artifactContext.getArtifactInfo().bundleExportPackage );
ArtifactInfo ai = artifactContext.getArtifactInfo();
assertEquals( "This bundle provides the Karaf shell commands to manipulate features.", ai.bundleDescription );
assertEquals( "Apache Karaf :: Features :: Command", ai.bundleName );
assertEquals( "http://www.apache.org/licenses/LICENSE-2.0.txt", ai.bundleLicense );
assertEquals( "http://www.apache.org/", ai.bundleDocUrl );