Package org.exolab.castor.tests.framework.testDescriptor

Examples of org.exolab.castor.tests.framework.testDescriptor.UnitTestCase


     * @param mar a collection of Marshalling Unit Tests
     */
    private void setUpMarshallingTests(final String suiteName, final TestSuite suite,
                                       final MarshallingTest mar) {
        for (int i = 0; i < mar.getUnitTestCaseCount(); ++i) {
            UnitTestCase tc = mar.getUnitTestCase(i);
            MarshallingFrameworkTestCase mftc = new MarshallingFrameworkTestCase(this, tc, mar);
            mftc._configuration = mar.getConfiguration();
            mftc.setTestSuiteName(suiteName);
            suite.addTest(mftc.suite());
        }
View Full Code Here


     * @param sg a collection of Source Generation Unit Tests
     */
    private void setUpSourceGeneratorTests(final String suiteName, final TestSuite suite,
                                           final SourceGeneratorTest sg) {
        for (int i = 0; i < sg.getUnitTestCaseCount(); ++i) {
            UnitTestCase tc = sg.getUnitTestCase(i);
            SourceGeneratorTestCase sgtc = new SourceGeneratorTestCase(this, tc, sg);
            sgtc.setTestSuiteName(suiteName);
            suite.addTest(sgtc.suite());
        }
    }
View Full Code Here

     * @param schemaTest a collection of Schema Unit Tests
     */
    private void setUpSchemaTests(final String suiteName, final TestSuite suite,
                                  final SchemaTest schemaTest) {
        for (int i = 0; i < schemaTest.getUnitTestCaseCount(); i++) {
            UnitTestCase tc = schemaTest.getUnitTestCase(i);
            // Little trick: getUnitTestCaseChoice should not be null at this point
            String name = tc.getUnitTestCaseChoice().getSchema();
            if (name.equals("*")) {
                File[] list = _testFile.listFiles();
                for (int j = 0; j < list.length; ++j) {
                    String fileName = list[j].getName();
                    // FIXME:  It would be better to use a file filter and to make
View Full Code Here

     * @param sg a collection of Source Generation Unit Tests
     */
    private void setUpGenerationOnlyTests(final String suiteName, final TestSuite suite,
                                          final OnlySourceGenerationTest sg) {
        for (int i = 0; i < sg.getUnitTestCaseCount(); ++i) {
            UnitTestCase tc = sg.getUnitTestCase(i);
            OnlySourceGenerationTestCase sgtc = new OnlySourceGenerationTestCase(this, tc, sg);
            sgtc.setTestSuiteName(suiteName);
            suite.addTest(sgtc.suite());
        }
    }
View Full Code Here

TOP

Related Classes of org.exolab.castor.tests.framework.testDescriptor.UnitTestCase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.