public class EnterpriseArchiveBuilder extends ArchiveBuilder<EnterpriseArchiveBuilder,org.jboss.shrinkwrap.api.spec.EnterpriseArchive>
EnterpriseArchive builder for CDI TCK Arquillian test. This builder is intended to provide basic
functionality covering common TCK needs. Use shrinkwrap API to adapt archive to advanced scenarios.
Test classes are added to EJB module.
The default web module is defined in order to build portable EE archive - it has to contain Class-Path entry in the
MANIFEST.MF to state module dependency (see Class Loading Requirements in Java EE spec). Custom web module is not supported
directly however its possible to build such module with shrinkwrap API and add it to final enterprise archive. It is
necessary to omit default web module using noDefaultWebModule() as long as custom web module is used since
arquillian cannot handle in-container test packaged as EAR with multiple web modules at the moment (cannot determine which
web module to enrich).
The application.xml descriptor is not supported as it is no longer required (Java EE 5, Java EE 6). Use
shrinkwrap API to add custom application.xml descriptor.
Use enterprise archive in TCK tests only while:
Tests that use EnterpriseArchiveBuilder must belong to TestGroups.JAVAEE_FULL group.
ArchiveBuilder.LibraryDescriptor, ArchiveBuilder.ResourceDescriptor, ArchiveBuilder.ServiceProviderDescriptor| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_APP_VERSION |
static String |
DEFAULT_EAR_NAME |
static String |
DEFAULT_EJB_MODULE_NAME |
beansDescriptor, beansXml, classes, DEBUG_MODE_PROPERTY, DEFAULT_EJB_VERSION, ejbJarDescriptor, ejbJarXml, excludedClasses, libraries, manifestResources, packages, persistenceDescriptor, resources, serviceProviders, shrinkWrapLibraries, webResources, webXml, webXmlDescriptor| Constructor and Description |
|---|
EnterpriseArchiveBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.shrinkwrap.api.spec.EnterpriseArchive |
buildInternal() |
EnterpriseArchiveBuilder |
noDefaultWebModule()
Do not add default web module.
|
EnterpriseArchiveBuilder |
self() |
EnterpriseArchiveBuilder |
withEjbModuleName(String ejbModuleName) |
build, debugMode, getBeansDescriptorAsset, getBeansDescriptorTarget, getName, getSha1OfTestClass, isAsClientMode, isTestArchive, notTestArchive, processClasses, processLibraries, processManifestResources, processPackages, processResources, readSystemProperties, setAsClientMode, withBeanLibrary, withBeanLibrary, withBeanLibrary, withBeanLibrary, withBeansXml, withBeansXml, withClass, withClasses, withDefaultPersistenceXml, withEjbJarXml, withEjbJarXml, withExcludedClass, withExcludedClasses, withExtension, withExtensions, withLibraries, withLibrary, withLibrary, withLibrary, withLibrary, withLibrary, withManifestResource, withManifestResource, withManifestResource, withName, withPackage, withPersistenceXml, withResource, withResource, withResource, withServiceProvider, withTestClass, withTestClassDefinition, withTestClassPackage, withWebResource, withWebResource, withWebResource, withWebResource, withWebXml, withWebXmlpublic static final String DEFAULT_APP_VERSION
public static final String DEFAULT_EAR_NAME
public static final String DEFAULT_EJB_MODULE_NAME
public EnterpriseArchiveBuilder noDefaultWebModule()
public EnterpriseArchiveBuilder withEjbModuleName(String ejbModuleName)
public EnterpriseArchiveBuilder self()
self in class ArchiveBuilder<EnterpriseArchiveBuilder,org.jboss.shrinkwrap.api.spec.EnterpriseArchive>protected org.jboss.shrinkwrap.api.spec.EnterpriseArchive buildInternal()
buildInternal in class ArchiveBuilder<EnterpriseArchiveBuilder,org.jboss.shrinkwrap.api.spec.EnterpriseArchive>Copyright © 2008–2016 CDI TCK. All rights reserved.