[jboss-jira] [JBoss JIRA] Updated: (AS7-1799) Fix the XTS subsystem test

Kabir Khan (JIRA) jira-events at lists.jboss.org
Tue Sep 13 08:12:26 EDT 2011


     [ https://issues.jboss.org/browse/AS7-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kabir Khan updated AS7-1799:
----------------------------

    Description: 
I added a test called XTSSubsystemTestCase, which uses our subsystem testing framework which attempts to validate the description providers, this will be committed to upstream in the next few days. 
What I have added is a minimum of what is required for subsystem testing, the test framework allows you to do a lot of other stuff, see the jmx subsystem test for some examples.
The tests actually parse validation but fails a bit further down the line since the model does not seem to get populated. Hence I've @Ignored it for now.

The wip lives at https://github.com/kabir/jboss-as/tree/subsystem-test-model-fixes


  was:
I added a test called TransactionSubsystemTestCase, which uses our subsystem testing framework which attempts to validate the description providers, this will be committed to upstream in the next few days. 
To make the tests pass I had to override AdditionalInitialization.getModelValidationConfiguration()  as follows:

{code}
      @Override
      protected ValidationConfiguration getModelValidationConfiguration() {
          return null;
      }
{code}
Returning null basically turns off validation of the providers. What I have added is a minimum of what is required for subsystem testing, the test framework allows you to do a lot of other stuff, see the jmx subsystem test for some examples.

The wip lives at https://github.com/kabir/jboss-as/tree/subsystem-test-model-fixes




>  Fix the XTS subsystem test
> ---------------------------
>
>                 Key: AS7-1799
>                 URL: https://issues.jboss.org/browse/AS7-1799
>             Project: Application Server 7
>          Issue Type: Feature Request
>            Reporter: Kabir Khan
>            Assignee: Stefano Maestri
>             Fix For: 7.1.0.Alpha1
>
>
> I added a test called XTSSubsystemTestCase, which uses our subsystem testing framework which attempts to validate the description providers, this will be committed to upstream in the next few days. 
> What I have added is a minimum of what is required for subsystem testing, the test framework allows you to do a lot of other stuff, see the jmx subsystem test for some examples.
> The tests actually parse validation but fails a bit further down the line since the model does not seem to get populated. Hence I've @Ignored it for now.
> The wip lives at https://github.com/kabir/jboss-as/tree/subsystem-test-model-fixes

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list