de.smartics.properties.jboss.extension
Class SubsystemParsingTestCase

Package class diagram package SubsystemParsingTestCase
java.lang.Object
  extended by org.jboss.as.subsystem.test.AbstractSubsystemTest
      extended by de.smartics.properties.jboss.extension.SubsystemParsingTestCase

public class SubsystemParsingTestCase
     
     
extends org.jboss.as.subsystem.test.AbstractSubsystemTest

Tests all management expects for subsystem, parsing, marshaling, model definition and other Here is an example that allows you a fine grained controler over what is tested and how. So it can give you ideas what can be done and tested. If you have no need for advanced testing of subsystem you look at SubsystemBaseParsingTestCase that testes same stuff but most of the code is hidden inside of test harness

Author:
Kabir Khan

Field Summary
 
Fields inherited from class org.jboss.as.subsystem.test.AbstractSubsystemTest
mainSubsystemName
 
Constructor Summary
SubsystemParsingTestCase()
           
 
Method Summary
 void testDescribeHandler()
          Starts a controller with the given subsystem xml and then checks that a second controller started with the operations from its describe action results in the same model
 void testInstallIntoController()
          Test that the model created from the xml looks as expected
 void testParseAndMarshalModel()
          Starts a controller with a given subsystem xml and then checks that a second controller started with the xml marshalled from the first one results in the same model
 void testParseSubsystem()
          Tests that the xml is parsed into the correct operations
 void testSubsystemRemoval()
          Tests that the subsystem can be removed
 
Methods inherited from class org.jboss.as.subsystem.test.AbstractSubsystemTest
assertRemoveSubsystemResources, assertRemoveSubsystemResources, checkResultAndGetContents, cleanup, compare, compareXml, compareXml, getMainExtension, getMainSubsystemName, getProcessType, grabRootResource, initializeParser, installInController, installInController, installInController, installInController, normalizeXML, outputModel, parse, parse, readResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsystemParsingTestCase

public SubsystemParsingTestCase()
Method Detail

testParseSubsystem

public void testParseSubsystem()
                        throws Exception
Tests that the xml is parsed into the correct operations

Throws:
Exception

testInstallIntoController

public void testInstallIntoController()
                               throws Exception
Test that the model created from the xml looks as expected

Throws:
Exception

testParseAndMarshalModel

public void testParseAndMarshalModel()
                              throws Exception
Starts a controller with a given subsystem xml and then checks that a second controller started with the xml marshalled from the first one results in the same model

Throws:
Exception

testDescribeHandler

public void testDescribeHandler()
                         throws Exception
Starts a controller with the given subsystem xml and then checks that a second controller started with the operations from its describe action results in the same model

Throws:
Exception

testSubsystemRemoval

public void testSubsystemRemoval()
                          throws Exception
Tests that the subsystem can be removed

Throws:
Exception


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.