package org.apache.avalon.framework.test;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.framework.TestResult;
import junit.swingui.TestRunner;

public class FrameworkTestSuite 
    extends TestCase
{
    private Test m_frameworkTest = FrameworkTestSuite.suite();

    public FrameworkTestSuite( final String name )
    {
        super( name );
    }

    public int countTestCases()
    {
        return m_frameworkTest.countTestCases();
    }

    public void run( final TestResult result )
    {
        m_frameworkTest.run( result );
    }

    public static Test suite()
    {
		final TestSuite suite = new TestSuite();
		suite.addTestSuite(org.apache.avalon.framework.configuration.test.DefaultConfigurationTestCase.class);
		suite.addTestSuite(org.apache.avalon.framework.configuration.test.SAXConfigurationHandlerTestCase.class);
		suite.addTestSuite(org.apache.avalon.framework.configuration.test.DefaultConfigurationBuilderTestCase.class);
	    return suite;
    }

    public static void main( final String[] args )
    {
        final String[] testCaseName = { FrameworkTestSuite.class.getName() };
        TestRunner.main( testCaseName );
    }
}


