Search in sources :

Example 1 with RunningModeControl

use of org.jboss.as.controller.RunningModeControl in project wildfly by wildfly.

the class JSSEParsingUnitTestCase method initializeParser.

@Before
public void initializeParser() throws Exception {
    //Initialize the parser
    xmlMapper = XMLMapper.Factory.create();
    extensionParsingRegistry = new ExtensionRegistry(ProcessType.EMBEDDED_SERVER, new RunningModeControl(RunningMode.NORMAL), null, null, null, null);
    testParser = new TestParser(mainSubsystemName, extensionParsingRegistry);
    xmlMapper.registerRootElement(new QName(TEST_NAMESPACE, "test"), testParser);
    mainExtension.initializeParsers(extensionParsingRegistry.getExtensionParsingContext("Test", xmlMapper));
}
Also used : ModelTestParser(org.jboss.as.model.test.ModelTestParser) TestParser(org.jboss.as.subsystem.test.TestParser) QName(javax.xml.namespace.QName) RunningModeControl(org.jboss.as.controller.RunningModeControl) ExtensionRegistry(org.jboss.as.controller.extension.ExtensionRegistry) Before(org.junit.Before)

Aggregations

QName (javax.xml.namespace.QName)1 RunningModeControl (org.jboss.as.controller.RunningModeControl)1 ExtensionRegistry (org.jboss.as.controller.extension.ExtensionRegistry)1 ModelTestParser (org.jboss.as.model.test.ModelTestParser)1 TestParser (org.jboss.as.subsystem.test.TestParser)1 Before (org.junit.Before)1