public abstract class AbstractSubsystemBaseTest extends AbstractSubsystemTest
mainSubsystemName
Constructor and Description |
---|
AbstractSubsystemBaseTest(String mainSubsystemName,
Extension mainExtension) |
Modifier and Type | Method and Description |
---|---|
protected AdditionalInitialization |
createAdditionalInitialization() |
protected org.jboss.dmr.ModelNode |
createDescribeOperation() |
protected Set<PathAddress> |
getIgnoredChildResourcesForRemovalTest()
Returns a set of child resources addresses that should not be removed directly.
|
protected abstract String |
getSubsystemXml()
Get the subsystem xml as string.
|
protected String |
getSubsystemXml(String configId)
Get the subsystem xml with the given id as a string.
|
static void |
main(String[] args) |
protected void |
standardSubsystemTest(String configId)
Tests the ability to create a model from an xml configuration, marshal the model back to xml,
re-read that marshalled model into a new model that matches the first one, execute a "describe"
operation for the model, create yet another model from executing the results of that describe
operation, and compare that model to first model.
|
protected void |
standardSubsystemTest(String configId,
boolean compareXml)
Tests the ability to create a model from an xml configuration, marshal the model back to xml,
re-read that marshalled model into a new model that matches the first one, execute a "describe"
operation for the model, create yet another model from executing the results of that describe
operation, and compare that model to first model.
|
void |
testSubsystem() |
assertRemoveSubsystemResources, assertRemoveSubsystemResources, checkResultAndGetContents, cleanup, compare, compareXml, compareXml, getMainExtension, getMainSubsystemName, getProcessType, grabRootResource, initializeParser, installInController, installInController, installInController, installInController, normalizeXML, outputModel, parse, parse, readResource
protected abstract String getSubsystemXml() throws IOException
IOException
protected String getSubsystemXml(String configId) throws IOException
This default implementation returns the result of a call to AbstractSubsystemTest.readResource(String)
.
configId
- the id of the xml configurationIOException
protected void standardSubsystemTest(String configId) throws Exception
configId
- id to pass to getSubsystemXml(String)
to get the configuration; if null
getSubsystemXml()
will be calledException
protected void standardSubsystemTest(String configId, boolean compareXml) throws Exception
configId
- id to pass to getSubsystemXml(String)
to get the configuration; if null
getSubsystemXml()
will be calledcompareXml
- if true
a comparison of xml output to original input is performed. This can be
set to false
if the original input is from an earlier xsd and the current
schema has a different outputException
protected org.jboss.dmr.ModelNode createDescribeOperation()
protected AdditionalInitialization createAdditionalInitialization()
protected Set<PathAddress> getIgnoredChildResourcesForRemovalTest()
AbstractSubsystemTest.assertRemoveSubsystemResources(KernelServices, Set)
public static void main(String[] args)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.