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:
Test

public class EarMojoIT
extends AbstractEarPluginIT

Version:
$Id: EarMojoIT.java 1377814 2012-08-27 20:08:01Z 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 default bundle directory for java modules.
 void testProject004()
          Builds an EAR with a default 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 overridden.
 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.
 void testProject057()
          Builds an EAR with a complete JBoss 4.2 configuration and validate it matches the DTD (MEAR-104).
 void testProject058()
          Builds an EAR with deployment descriptor configuration for Java EE 6.
 void testProject059()
          Builds an EAR with no display name entry at all.
 void testProject060()
          Builds an EAR with ejb-client packaged for J2EE 1.3 (MEAR-85)
 void testProject061()
          Builds an EAR with ejb-client packaged for J2EE 1.4 (MEAR-85)
 void testProject062()
          Builds an EAR with ejb-client packaged for JavaEE 5 (MEAR-85)
 void testProject063()
          Builds an EAR with ejb-client packaged for JavaEE 6 (MEAR-85)
 void testProject064()
          Builds an EAR with ejb-client packaged for JavaEE 5 and still put it in the root (MEAR-85)
 void testProject065()
          Builds an EAR with a custom moduleId.
 void testProject066()
          Builds an EAR with generateModuleId enabled.
 void testProject067()
          Builds an EAR with generateModuleId enabled and a custom module.
 void testProject068()
          Builds an EAR with the no-version file name mapping.
 void testProject069()
          Builds an EAR with a custom library-directory and JavaEE 6.
 void testProject070()
          Builds an EAR with application-name and initialize-in-order tags.
 void testProject071()
          Builds an EAR with application-name and initialize-in-order tags for unsupported version.
 void testProject072()
          Builds an EAR with an application client module (app-client).
 void testProject073()
          Builds an EAR with an application client module (app-client) and a default bundle directory for _java_ modules.
 void testProject074()
          Builds an EAR with custom env entries settings and J2EE 1.3.
 void testProject075()
          Builds an EAR with custom env entries settings and J2EE 1.4.
 void testProject076()
          Builds an EAR with custom env entries settings and JavaEE 5.
 void testProject077()
          Builds an EAR with custom env entries settings and JavaEE 6.
 void testProject078()
          Builds an EAR with the no version for ejb file name mapping.
 void testProject079()
          Builds an EAR with the 'default' library directory mode.
 void testProject080()
          Builds an EAR with the 'empty' library directory mode.
 void testProject081()
          Builds an EAR with the 'none' library directory mode.
 
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, failNotEquals, failNotSame, failSame, format
 
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 Exception
Builds an EAR with a single EJB and no configuration.

Throws:
Exception

testProject002

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

Throws:
Exception

testProject003

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

Throws:
Exception

testProject004

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

Throws:
Exception

testProject005

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

Throws:
Exception

testProject006

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

Throws:
Exception

testProject007

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

Throws:
Exception

testProject008

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

Throws:
Exception

testProject009

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

Throws:
Exception

testProject010

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

Throws:
Exception

testProject011

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

Throws:
Exception

testProject012

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

Throws:
Exception

testProject013

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

Throws:
Exception

testProject014

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

Throws:
Exception

testProject015

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

Throws:
Exception

testProject016

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

Throws:
Exception

testProject017

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

Throws:
Exception

testProject018

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

Throws:
Exception

testProject019

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

Throws:
Exception

testProject020

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

Throws:
Exception

testProject021

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

Throws:
Exception

testProject022

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

Throws:
Exception

testProject023

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

Throws:
Exception

testProject024

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

Throws:
Exception

testProject025

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

Throws:
Exception

testProject026

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

Throws:
Exception

testProject027

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

Throws:
Exception

testProject028

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

Throws:
Exception

testProject029

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

Throws:
Exception

testProject030

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

Throws:
Exception

testProject031

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

Throws:
Exception

testProject032

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

Throws:
Exception

testProject033

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

Throws:
Exception

testProject034

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

Throws:
Exception

testProject035

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

Throws:
Exception

testProject036

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

Throws:
Exception

testProject037

public void testProject037()
                    throws 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:
Exception

testProject038

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

Throws:
Exception

testProject039

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

Throws:
Exception

testProject040

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

Throws:
Exception

testProject041

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

Throws:
Exception

testProject042

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

Throws:
Exception

testProject043

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

Throws:
Exception

testProject044

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

Throws:
Exception

testProject045

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

Throws:
Exception

testProject046

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

Throws:
Exception

testProject047

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

Throws:
Exception

testProject048

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

Throws:
Exception

testProject049

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

Throws:
Exception

testProject050

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

Throws:
Exception

testProject051

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

Throws:
Exception

testProject052

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

Throws:
Exception

testProject053

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

Throws:
Exception

testProject054

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

Throws:
Exception

testProject055

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

Throws:
Exception

testProject056

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

Throws:
Exception

testProject057

public void testProject057()
                    throws Exception
Builds an EAR with a complete JBoss 4.2 configuration and validate it matches the DTD (MEAR-104).

Throws:
Exception

testProject058

public void testProject058()
                    throws Exception
Builds an EAR with deployment descriptor configuration for Java EE 6.

Throws:
Exception

testProject059

public void testProject059()
                    throws Exception
Builds an EAR with no display name entry at all.

Throws:
Exception

testProject060

public void testProject060()
                    throws Exception
Builds an EAR with ejb-client packaged for J2EE 1.3 (MEAR-85)

Throws:
Exception

testProject061

public void testProject061()
                    throws Exception
Builds an EAR with ejb-client packaged for J2EE 1.4 (MEAR-85)

Throws:
Exception

testProject062

public void testProject062()
                    throws Exception
Builds an EAR with ejb-client packaged for JavaEE 5 (MEAR-85)

Throws:
Exception

testProject063

public void testProject063()
                    throws Exception
Builds an EAR with ejb-client packaged for JavaEE 6 (MEAR-85)

Throws:
Exception

testProject064

public void testProject064()
                    throws Exception
Builds an EAR with ejb-client packaged for JavaEE 5 and still put it in the root (MEAR-85)

Throws:
Exception

testProject065

public void testProject065()
                    throws Exception
Builds an EAR with a custom moduleId.

Throws:
Exception

testProject066

public void testProject066()
                    throws Exception
Builds an EAR with generateModuleId enabled.

Throws:
Exception

testProject067

public void testProject067()
                    throws Exception
Builds an EAR with generateModuleId enabled and a custom module.

Throws:
Exception

testProject068

public void testProject068()
                    throws Exception
Builds an EAR with the no-version file name mapping.

Throws:
Exception

testProject069

public void testProject069()
                    throws Exception
Builds an EAR with a custom library-directory and JavaEE 6.

Throws:
Exception

testProject070

public void testProject070()
                    throws Exception
Builds an EAR with application-name and initialize-in-order tags.

Throws:
Exception

testProject071

public void testProject071()
                    throws Exception
Builds an EAR with application-name and initialize-in-order tags for unsupported version.

Throws:
Exception

testProject072

public void testProject072()
                    throws Exception
Builds an EAR with an application client module (app-client).

Throws:
Exception

testProject073

public void testProject073()
                    throws Exception
Builds an EAR with an application client module (app-client) and a default bundle directory for _java_ modules.

Throws:
Exception

testProject074

public void testProject074()
                    throws Exception
Builds an EAR with custom env entries settings and J2EE 1.3. Not supported by the specification so this should be ignored.

Throws:
Exception

testProject075

public void testProject075()
                    throws Exception
Builds an EAR with custom env entries settings and J2EE 1.4. Not supported by the specification so this should be ignored.

Throws:
Exception

testProject076

public void testProject076()
                    throws Exception
Builds an EAR with custom env entries settings and JavaEE 5. Not supported by the specification so this should be ignored.

Throws:
Exception

testProject077

public void testProject077()
                    throws Exception
Builds an EAR with custom env entries settings and JavaEE 6.

Throws:
Exception

testProject078

public void testProject078()
                    throws Exception
Builds an EAR with the no version for ejb file name mapping.

Throws:
Exception

testProject079

public void testProject079()
                    throws Exception
Builds an EAR with the 'default' library directory mode. Uses the value of the defaultLibBundleDir.

Throws:
Exception

testProject080

public void testProject080()
                    throws Exception
Builds an EAR with the 'empty' library directory mode. Generate an empty library-directory element.

Throws:
Exception

testProject081

public void testProject081()
                    throws Exception
Builds an EAR with the 'none' library directory mode. Does not generate an library-directory element.

Throws:
Exception


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