Package org.jboss.as.test.shared
Class LayersTestBase
java.lang.Object
org.jboss.as.test.shared.LayersTestBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Packages that are always expected to be included in the return value ofgetExpectedUnusedInAllLayers().static final String[]Included in the return value ofgetExpectedUnusedInAllLayers()when testing provisioning from the wildfly or wildfly-preview feature packs.static final String[]Packages that are always expected to be included in the return value of bothgetExpectedUnusedInAllLayers()andgetExpectedUnreferenced().static final String[]Included in the return value of bothgetExpectedUnusedInAllLayers()andgetExpectedUnreferenced(), but only when testing provisioning directly from the wildfly-ee feature pack.static final String[]Included in the return value ofgetExpectedUnusedInAllLayers()only when testing provisioning from the wildfly feature pack.static final String[]Included in the return value ofgetExpectedUnusedInAllLayers()only when testing provisioning directly from the wildfly-ee feature pack.static final String[]Included in the return value ofgetExpectedUnusedInAllLayers()only when testing provisioning from the wildfly-preview feature pack.static final String[]Packages that are always expected to be included in the return value ofgetExpectedUnreferenced().static final String[]Included in the return value ofgetExpectedUnreferenced()when testing provisioning from the wildfly or wildfly-preview feature packs.static final String[]Included in the return value ofgetExpectedUnreferenced()only when testing provisioning from the wildfly feature pack.static final String[]Included in the return value ofgetExpectedUnreferenced()only when testing provisioning directly from the wildfly-ee feature pack.static final String[]Included in the return value ofgetExpectedUnreferenced()only when testing provisioning from the wildfly-preview feature pack.protected static String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks that none of the installations found in the givenlayers.install.rootdirectory include modules marked as 'banned'.static voidcleanUp()concatArrays(String[] first, String[]... others) Utility method to combine various module name arrays into sets for use as parameters to this class' methods.Gets the expected set of packages that are not referenced from the module graph but need to be provisioned.Gets the expected set of packages that are provisioned by the test-standalone-reference installation but not used in the test-all-layers installation.static voidsetUp()voidChecks that the installation found in the givenstd.default.install.rootdirectory can be started without errors, i.e. with theWFLYSRV0025log message in the server's stdout stream.voidChecks that the installations found in the givenlayers.install.rootdirectory can all be started without errors, i.e. with theWFLYSRV0025log message in the server's stdout stream.voidChecks that all modules that were provisioned in the @{code test-standalone-reference} installation are also provisioned in @{test-all-layers}, except those included in thegetExpectedUnusedInAllLayers()set.voidChecks that all modules in the @{code test-standalone-reference} installation are referenced from the installation root module or extension modules configured in standalone.xml, except those included in thegetExpectedUnreferenced()set.
-
Field Details
-
NO_LAYER_COMMON
Packages that are always expected to be included in the return value ofgetExpectedUnusedInAllLayers(). -
NO_LAYER_WILDFLY_EE
Included in the return value ofgetExpectedUnusedInAllLayers()only when testing provisioning directly from the wildfly-ee feature pack. -
NO_LAYER_EXPANSION
Included in the return value ofgetExpectedUnusedInAllLayers()when testing provisioning from the wildfly or wildfly-preview feature packs. Use this array for items common between the two feature packs. -
NO_LAYER_WILDFLY
Included in the return value ofgetExpectedUnusedInAllLayers()only when testing provisioning from the wildfly feature pack. -
NO_LAYER_WILDFLY_PREVIEW
Included in the return value ofgetExpectedUnusedInAllLayers()only when testing provisioning from the wildfly-preview feature pack. -
NOT_REFERENCED_COMMON
Packages that are always expected to be included in the return value ofgetExpectedUnreferenced(). -
NOT_REFERENCED_WILDFLY_EE
Included in the return value ofgetExpectedUnreferenced()only when testing provisioning directly from the wildfly-ee feature pack. -
NOT_REFERENCED_EXPANSION
Included in the return value ofgetExpectedUnreferenced()when testing provisioning from the wildfly or wildfly-preview feature packs. Use this array for items common between the two feature packs. -
NOT_REFERENCED_WILDFLY
Included in the return value ofgetExpectedUnreferenced()only when testing provisioning from the wildfly feature pack. -
NOT_REFERENCED_WILDFLY_PREVIEW
Included in the return value ofgetExpectedUnreferenced()only when testing provisioning from the wildfly-preview feature pack. -
NO_LAYER_OR_REFERENCE_COMMON
Packages that are always expected to be included in the return value of bothgetExpectedUnusedInAllLayers()andgetExpectedUnreferenced(). -
NO_LAYER_OR_REFERENCE_WILDFLY_EE
Included in the return value of bothgetExpectedUnusedInAllLayers()andgetExpectedUnreferenced(), but only when testing provisioning directly from the wildfly-ee feature pack. -
root
-
-
Constructor Details
-
LayersTestBase
public LayersTestBase()
-
-
Method Details
-
getExpectedUnreferenced
Gets the expected set of packages that are not referenced from the module graph but need to be provisioned. This is the expected set of modules found when scanning the default configuration that are not referenced directly or transitively from a standalone server's root module or from one of the extensions used in standalone.xml. -
getExpectedUnusedInAllLayers
Gets the expected set of packages that are provisioned by the test-standalone-reference installation but not used in the test-all-layers installation. This is the expected set of not provisioned modules when all layers are provisioned; i.e. those that are not associated with any layer included in the test-all-layers installation. -
concatArrays
Utility method to combine various module name arrays into sets for use as parameters to this class' methods.- Parameters:
first- the first array to combine. Cannot benullothers- other arrays to combine. Can benull- Returns:
- a set containing all of the elements in the arrays
-
setUp
public static void setUp() -
cleanUp
public static void cleanUp() -
testLayersBoot
Checks that the installations found in the givenlayers.install.rootdirectory can all be started without errors, i.e. with theWFLYSRV0025log message in the server's stdout stream.The @{code test-standalone-reference} installation is not tested as that kind of installation is heavily tested elsewhere.
- Throws:
Exception- on failure
-
testLayersModuleUse
Checks that all modules that were provisioned in the @{code test-standalone-reference} installation are also provisioned in @{test-all-layers}, except those included in thegetExpectedUnusedInAllLayers()set. The goals of this test are to check for new modules that should be provided by layers but currently are not and to encourage inclusion of existing modules not used in a layer to have an associated layer.- Throws:
Exception- on failure
-
testUnreferencedModules
Checks that all modules in the @{code test-standalone-reference} installation are referenced from the installation root module or extension modules configured in standalone.xml, except those included in thegetExpectedUnreferenced()set. The goal of this test is to prevent the accumulation of 'orphaned' modules that are not usable.- Throws:
Exception- on failure
-
checkBannedModules
Checks that none of the installations found in the givenlayers.install.rootdirectory include modules marked as 'banned'.- Throws:
Exception- on failure
-
testDefaultConfigs
Checks that the installation found in the givenstd.default.install.rootdirectory can be started without errors, i.e. with theWFLYSRV0025log message in the server's stdout stream.- Throws:
Exception- on failure
-