org.apache.maven.plugin.ear.it
Class EarMojoIT

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.plugin.ear.it.AbstractEarPluginIT
              extended by org.apache.maven.plugin.ear.it.EarMojoIT
All Implemented Interfaces:
junit.framework.Test

public class EarMojoIT
extends AbstractEarPluginIT

Version:
$Id: EarMojoIT.java 749046 2009-03-01 15:37:29Z snicoll $
Author:
Stephane Nicoll

Field Summary
 
Fields inherited from class org.apache.maven.plugin.ear.it.AbstractEarPluginIT
FINAL_NAME_PREFIX, FINAL_NAME_SUFFIX, localRepositoryDir, settingsFile
 
Constructor Summary
EarMojoIT()
           
 
Method Summary
 void testProject001()
          Builds an EAR with a single EJB and no configuration.
 void testProject002()
          Builds an EAR with a customized artifact location and a customized artifact name.
 void testProject003()
          Builds an EAR with a defalt bundle directory for java modules.
 void testProject004()
          Builds an EAR with a defalt bundle directory for _java_ modules and a custom location overriding the default.
 void testProject005()
          Builds an EAR with a custom URI.
 void testProject006()
          Builds an EAR with an excluded module.
 void testProject007()
          Builds an EAR with a classified artifact and no extra configuration.
 void testProject008()
          Builds an EAR with deployment descriptor configuration for J2EE 1.3.
 void testProject009()
          Builds an EAR with deployment descriptor configuration for J2EE 1.4.
 void testProject010()
          Builds an EAR with deployment descriptor configuration for Java EE 5.
 void testProject011()
          Builds an EAR and make sure that deployment descriptor default settings are applied.
 void testProject012()
          Builds an EAR and make sure that EAR resources are bundled within the EAR.
 void testProject013()
          Builds an EAR and make sure that EAR resources in a customized resources directory are bundled within the EAR.
 void testProject014()
          Builds an EAR and make sure that EAR resources are bundled within the EAR using includes and excludes.
 void testProject015()
          Builds an EAR and make sure that default manifest is taken into account.
 void testProject016()
          Builds an EAR and make sure that custom manifest is taken into account.
 void testProject017()
          Builds an EAR and make sure that custom application.xml is taken into account.
 void testProject018()
          Builds an EAR with a custom final name.
 void testProject019()
          Builds an EAR with unpacked archives using the unpackTypes.
 void testProject020()
          Builds an EAR with unpacked archives using the unpack module attribute.
 void testProject021()
          Builds an EAR with unpacked archives using both unpackTypes and the unpack module attribute.
 void testProject022()
          Builds an EAR with a classifier.
 void testProject023()
          Builds an EAR and make sure that a single classified dependency is detected without specifying the classifier.
 void testProject024()
          Builds an EAR and make sure that a single classified dependency is detected when specifying the classifier.
 void testProject025()
          Builds an EAR and make sure that a classified dependency with mutiple candidates is detected when specifying the classifier.
 void testProject026()
          Builds an EAR and make sure that the build fails if a unclassifed module configuration with mutiple candidates is specified.
 void testProject027()
          Builds an EAR and make sure that provided dependencies are not included in the EAR.
 void testProject028()
          Builds an EAR and make sure that test dependencies are not included in the EAR.
 void testProject029()
          Builds an EAR and make sure that system dependencies are not included in the EAR.
 void testProject030()
          Builds an EAR and make sure that ejb-client dependencies are detected and not added by default in the generated application.xml.
 void testProject031()
          Builds an EAR with a Jboss 4 configuration specifying the security domain and the unauthenticated-principal to use.
 void testProject032()
          Builds an EAR with a Jboss 3.2 configuration specifying the jmx-name to use.
 void testProject033()
          Builds an EAR with a Jboss 4 configuration and Jboss specific modules.
 void testProject034()
          Builds an EAR with custom security settings.
 void testProject035()
          Builds an EAR with a full filename mapping and make sure that custom locations are not overriden.
 void testProject036()
          Builds an EAR with a full filename mapping and make sure that groupIds with dots are replaced by dashes in filenames.
 void testProject037()
          Builds an EAR and make sure that ejb-client dependencies are detected and added in the generated application.xml if includeInApplicationXml is set.
 void testProject038()
          Builds an EAR and make sure that a non-classified dependency with mutiple candidates is detected when specifying the mainArtifactId as classifier.
 void testProject039()
          Builds an EAR with a Jboss 4 configuration specifying specifying the loader repository to use.
 void testProject040()
          Builds an EAR with deployment descriptor configuration for Java EE 5 and an alternative deployment descriptor.
 void testProject041()
          Builds an EAR with a Jboss 4.2 configuration specifying the module order to use.
 void testProject042()
          Builds an EAR with a Jboss 4.2 configuration specifying a datasource to add.
 void testProject043()
          Builds an EAR with a custom descriptor location (generatedDescriptorLocation setting).
 void testProject044()
          Builds an EAR with a custom library-directory.
 void testProject045()
          Builds an EAR and filter the content of the sources directory.
 void testProject046()
          Builds an EAR and filter the content of the sources directory using a custom filter file.
 void testProject047()
          Builds an EAR and filter the content with a list of extensions.
 void testProject048()
          Builds an EAR with a Jboss 5 configuration containing library directory.
 void testProject049()
          Builds an EAR with a Jboss 4.2 configuration containing a library directory.
 void testProject050()
          Builds an EAR with a Jboss 5 configuration containing a loader repository configuration definition.
 void testProject051()
          Builds an EAR with a Jboss 5 configuration containing a loader repository class definition.
 void testProject052()
          Builds an EAR with a Jboss 5 configuration containing a configuration parser class definition.
 void testProject053()
          Builds an EAR with a Jboss 5 configuration containing only the loader repo configuration
 void testProject054()
          Builds an EAR with deployment descriptor configuration for Java EE 5 and no application.xml
 void testProject055()
          Builds an EAR with jar dependencies added in application.xml.
 void testProject056()
          Builds an EAR with deployment descriptor configuration for J2EE 1.4 and an alternative deployment descriptor.
 
Methods inherited from class org.apache.maven.plugin.ear.it.AbstractEarPluginIT
assertArchiveContent, assertDeploymentDescriptors, assertEarArchive, assertEarDirectory, buildArchiveContentFiles, buildFinalName, doTestProject, doTestProject, doTestProject, doTestProject, executeMojo, executeMojo, getBasedir, getEarArchive, getEarDirectory, getTargetDirectory, getTestDir
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EarMojoIT

public EarMojoIT()
Method Detail

testProject001

public void testProject001()
                    throws java.lang.Exception
Builds an EAR with a single EJB and no configuration.

Throws:
java.lang.Exception

testProject002

public void testProject002()
                    throws java.lang.Exception
Builds an EAR with a customized artifact location and a customized artifact name.

Throws:
java.lang.Exception

testProject003

public void testProject003()
                    throws java.lang.Exception
Builds an EAR with a defalt bundle directory for java modules.

Throws:
java.lang.Exception

testProject004

public void testProject004()
                    throws java.lang.Exception
Builds an EAR with a defalt bundle directory for _java_ modules and a custom location overriding the default.

Throws:
java.lang.Exception

testProject005

public void testProject005()
                    throws java.lang.Exception
Builds an EAR with a custom URI.

Throws:
java.lang.Exception

testProject006

public void testProject006()
                    throws java.lang.Exception
Builds an EAR with an excluded module.

Throws:
java.lang.Exception

testProject007

public void testProject007()
                    throws java.lang.Exception
Builds an EAR with a classified artifact and no extra configuration.

Throws:
java.lang.Exception

testProject008

public void testProject008()
                    throws java.lang.Exception
Builds an EAR with deployment descriptor configuration for J2EE 1.3.

Throws:
java.lang.Exception

testProject009

public void testProject009()
                    throws java.lang.Exception
Builds an EAR with deployment descriptor configuration for J2EE 1.4.

Throws:
java.lang.Exception

testProject010

public void testProject010()
                    throws java.lang.Exception
Builds an EAR with deployment descriptor configuration for Java EE 5.

Throws:
java.lang.Exception

testProject011

public void testProject011()
                    throws java.lang.Exception
Builds an EAR and make sure that deployment descriptor default settings are applied.

Throws:
java.lang.Exception

testProject012

public void testProject012()
                    throws java.lang.Exception
Builds an EAR and make sure that EAR resources are bundled within the EAR.

Throws:
java.lang.Exception

testProject013

public void testProject013()
                    throws java.lang.Exception
Builds an EAR and make sure that EAR resources in a customized resources directory are bundled within the EAR.

Throws:
java.lang.Exception

testProject014

public void testProject014()
                    throws java.lang.Exception
Builds an EAR and make sure that EAR resources are bundled within the EAR using includes and excludes.

Throws:
java.lang.Exception

testProject015

public void testProject015()
                    throws java.lang.Exception
Builds an EAR and make sure that default manifest is taken into account.

Throws:
java.lang.Exception

testProject016

public void testProject016()
                    throws java.lang.Exception
Builds an EAR and make sure that custom manifest is taken into account.

Throws:
java.lang.Exception

testProject017

public void testProject017()
                    throws java.lang.Exception
Builds an EAR and make sure that custom application.xml is taken into account.

Throws:
java.lang.Exception

testProject018

public void testProject018()
                    throws java.lang.Exception
Builds an EAR with a custom final name.

Throws:
java.lang.Exception

testProject019

public void testProject019()
                    throws java.lang.Exception
Builds an EAR with unpacked archives using the unpackTypes.

Throws:
java.lang.Exception

testProject020

public void testProject020()
                    throws java.lang.Exception
Builds an EAR with unpacked archives using the unpack module attribute.

Throws:
java.lang.Exception

testProject021

public void testProject021()
                    throws java.lang.Exception
Builds an EAR with unpacked archives using both unpackTypes and the unpack module attribute.

Throws:
java.lang.Exception

testProject022

public void testProject022()
                    throws java.lang.Exception
Builds an EAR with a classifier.

Throws:
java.lang.Exception

testProject023

public void testProject023()
                    throws java.lang.Exception
Builds an EAR and make sure that a single classified dependency is detected without specifying the classifier.

Throws:
java.lang.Exception

testProject024

public void testProject024()
                    throws java.lang.Exception
Builds an EAR and make sure that a single classified dependency is detected when specifying the classifier.

Throws:
java.lang.Exception

testProject025

public void testProject025()
                    throws java.lang.Exception
Builds an EAR and make sure that a classified dependency with mutiple candidates is detected when specifying the classifier.

Throws:
java.lang.Exception

testProject026

public void testProject026()
                    throws java.lang.Exception
Builds an EAR and make sure that the build fails if a unclassifed module configuration with mutiple candidates is specified.

Throws:
java.lang.Exception

testProject027

public void testProject027()
                    throws java.lang.Exception
Builds an EAR and make sure that provided dependencies are not included in the EAR.

Throws:
java.lang.Exception

testProject028

public void testProject028()
                    throws java.lang.Exception
Builds an EAR and make sure that test dependencies are not included in the EAR.

Throws:
java.lang.Exception

testProject029

public void testProject029()
                    throws java.lang.Exception
Builds an EAR and make sure that system dependencies are not included in the EAR.

Throws:
java.lang.Exception

testProject030

public void testProject030()
                    throws java.lang.Exception
Builds an EAR and make sure that ejb-client dependencies are detected and not added by default in the generated application.xml.

Throws:
java.lang.Exception

testProject031

public void testProject031()
                    throws java.lang.Exception
Builds an EAR with a Jboss 4 configuration specifying the security domain and the unauthenticated-principal to use.

Throws:
java.lang.Exception

testProject032

public void testProject032()
                    throws java.lang.Exception
Builds an EAR with a Jboss 3.2 configuration specifying the jmx-name to use.

Throws:
java.lang.Exception

testProject033

public void testProject033()
                    throws java.lang.Exception
Builds an EAR with a Jboss 4 configuration and Jboss specific modules.

Throws:
java.lang.Exception

testProject034

public void testProject034()
                    throws java.lang.Exception
Builds an EAR with custom security settings.

Throws:
java.lang.Exception

testProject035

public void testProject035()
                    throws java.lang.Exception
Builds an EAR with a full filename mapping and make sure that custom locations are not overriden.

Throws:
java.lang.Exception

testProject036

public void testProject036()
                    throws java.lang.Exception
Builds an EAR with a full filename mapping and make sure that groupIds with dots are replaced by dashes in filenames.

Throws:
java.lang.Exception

testProject037

public void testProject037()
                    throws java.lang.Exception
Builds an EAR and make sure that ejb-client dependencies are detected and added in the generated application.xml if includeInApplicationXml is set.

Throws:
java.lang.Exception

testProject038

public void testProject038()
                    throws java.lang.Exception
Builds an EAR and make sure that a non-classified dependency with mutiple candidates is detected when specifying the mainArtifactId as classifier.

Throws:
java.lang.Exception

testProject039

public void testProject039()
                    throws java.lang.Exception
Builds an EAR with a Jboss 4 configuration specifying specifying the loader repository to use.

Throws:
java.lang.Exception

testProject040

public void testProject040()
                    throws java.lang.Exception
Builds an EAR with deployment descriptor configuration for Java EE 5 and an alternative deployment descriptor.

Throws:
java.lang.Exception

testProject041

public void testProject041()
                    throws java.lang.Exception
Builds an EAR with a Jboss 4.2 configuration specifying the module order to use.

Throws:
java.lang.Exception

testProject042

public void testProject042()
                    throws java.lang.Exception
Builds an EAR with a Jboss 4.2 configuration specifying a datasource to add.

Throws:
java.lang.Exception

testProject043

public void testProject043()
                    throws java.lang.Exception
Builds an EAR with a custom descriptor location (generatedDescriptorLocation setting).

Throws:
java.lang.Exception

testProject044

public void testProject044()
                    throws java.lang.Exception
Builds an EAR with a custom library-directory.

Throws:
java.lang.Exception

testProject045

public void testProject045()
                    throws java.lang.Exception
Builds an EAR and filter the content of the sources directory.

Throws:
java.lang.Exception

testProject046

public void testProject046()
                    throws java.lang.Exception
Builds an EAR and filter the content of the sources directory using a custom filter file.

Throws:
java.lang.Exception

testProject047

public void testProject047()
                    throws java.lang.Exception
Builds an EAR and filter the content with a list of extensions.

Throws:
java.lang.Exception

testProject048

public void testProject048()
                    throws java.lang.Exception
Builds an EAR with a Jboss 5 configuration containing library directory.

Throws:
java.lang.Exception

testProject049

public void testProject049()
                    throws java.lang.Exception
Builds an EAR with a Jboss 4.2 configuration containing a library directory.

Throws:
java.lang.Exception

testProject050

public void testProject050()
                    throws java.lang.Exception
Builds an EAR with a Jboss 5 configuration containing a loader repository configuration definition.

Throws:
java.lang.Exception

testProject051

public void testProject051()
                    throws java.lang.Exception
Builds an EAR with a Jboss 5 configuration containing a loader repository class definition.

Throws:
java.lang.Exception

testProject052

public void testProject052()
                    throws java.lang.Exception
Builds an EAR with a Jboss 5 configuration containing a configuration parser class definition.

Throws:
java.lang.Exception

testProject053

public void testProject053()
                    throws java.lang.Exception
Builds an EAR with a Jboss 5 configuration containing only the loader repo configuration

Throws:
java.lang.Exception

testProject054

public void testProject054()
                    throws java.lang.Exception
Builds an EAR with deployment descriptor configuration for Java EE 5 and no application.xml

Throws:
java.lang.Exception

testProject055

public void testProject055()
                    throws java.lang.Exception
Builds an EAR with jar dependencies added in application.xml.

Throws:
java.lang.Exception

testProject056

public void testProject056()
                    throws java.lang.Exception
Builds an EAR with deployment descriptor configuration for J2EE 1.4 and an alternative deployment descriptor.

Throws:
java.lang.Exception


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.