1 package org.apache.felix.bundleplugin;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 import java.io.File;
24
25 import org.apache.maven.plugin.testing.stubs.ArtifactStub;
26 import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
27 import org.codehaus.plexus.PlexusTestCase;
28
29
30
31
32
33
34
35
36 public abstract class AbstractBundlePluginTest extends PlexusTestCase
37 {
38
39 protected MavenProjectStub getMavenProjectStub()
40 {
41 MavenProjectStub project = new MavenProjectStub();
42 project.setGroupId( "group" );
43 project.setArtifactId( "project" );
44 project.setVersion( "1.2.3.4" );
45 return project;
46 }
47
48
49 protected ArtifactStub getArtifactStub()
50 {
51 ArtifactStub artifact = new ArtifactStub();
52 artifact.setGroupId( "group" );
53 artifact.setArtifactId( "artifact" );
54 artifact.setVersion( "1.0" );
55 return artifact;
56 }
57
58
59 protected File getTestBundle()
60 {
61 String osgiBundleFileName = "org.apache.maven.maven-model_2.1.0.SNAPSHOT.jar";
62 return getTestFile( getBasedir(), "src/test/resources/" + osgiBundleFileName );
63 }
64
65 }