use of org.apache.maven.plugins.ear.EjbModule in project maven-plugins by apache.
the class EarMavenArchiverTest method testSimpleJarModuleWithCustomBundleDir.
@Test
public void testSimpleJarModuleWithCustomBundleDir() {
final List<EarModule> modules = new ArrayList<EarModule>();
final EarModule module = new EjbModule(createArtifact("foo", "jar"));
setUri(module, "libs/foo-1.0.jar");
modules.add(module);
final EarMavenArchiver archiver = new EarMavenArchiver(modules);
assertEquals("libs/foo-1.0.jar", archiver.generateClassPathEntry(""));
}
use of org.apache.maven.plugins.ear.EjbModule in project maven-plugins by apache.
the class EarMavenArchiverTest method testSimpleEjbModule.
@Test
public void testSimpleEjbModule() {
final List<EarModule> modules = new ArrayList<EarModule>();
final EarModule module = new EjbModule(createArtifact("foo", "ejb"));
setUri(module, "foo-1.0.jar");
modules.add(module);
final EarMavenArchiver archiver = new EarMavenArchiver(modules);
assertEquals("foo-1.0.jar", archiver.generateClassPathEntry(""));
}
use of org.apache.maven.plugins.ear.EjbModule in project maven-plugins by apache.
the class EarMavenArchiverTest method testTwoModules.
@Test
public void testTwoModules() {
final List<EarModule> modules = new ArrayList<EarModule>();
final EarModule module = new EjbModule(createArtifact("foo", "ejb"));
setUri(module, "foo-1.0.jar");
modules.add(module);
final EarModule module2 = new EjbModule(createArtifact("bar", "war"));
setUri(module2, "bar-2.0.1.war");
modules.add(module2);
final EarMavenArchiver archiver = new EarMavenArchiver(modules);
assertEquals("foo-1.0.jar bar-2.0.1.war", archiver.generateClassPathEntry(""));
}
Aggregations