Search in sources :

Example 1 with EjbModule

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(""));
}
Also used : ArrayList(java.util.ArrayList) EarModule(org.apache.maven.plugins.ear.EarModule) EjbModule(org.apache.maven.plugins.ear.EjbModule) EarMavenArchiver(org.apache.maven.plugins.ear.util.EarMavenArchiver) Test(org.junit.Test)

Example 2 with EjbModule

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(""));
}
Also used : ArrayList(java.util.ArrayList) EarModule(org.apache.maven.plugins.ear.EarModule) EjbModule(org.apache.maven.plugins.ear.EjbModule) EarMavenArchiver(org.apache.maven.plugins.ear.util.EarMavenArchiver) Test(org.junit.Test)

Example 3 with EjbModule

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(""));
}
Also used : ArrayList(java.util.ArrayList) EarModule(org.apache.maven.plugins.ear.EarModule) EjbModule(org.apache.maven.plugins.ear.EjbModule) EarMavenArchiver(org.apache.maven.plugins.ear.util.EarMavenArchiver) Test(org.junit.Test)

Aggregations

ArrayList (java.util.ArrayList)3 EarModule (org.apache.maven.plugins.ear.EarModule)3 EjbModule (org.apache.maven.plugins.ear.EjbModule)3 EarMavenArchiver (org.apache.maven.plugins.ear.util.EarMavenArchiver)3 Test (org.junit.Test)3