Examples of UnitTestCase


Examples of nexj.core.meta.testing.unit.UnitTestCase

               boolean bFirstTestCase = true;

               for (Iterator itr = utest.getUnitTestCaseIterator(); itr.hasNext();
                  bFirstRun = false, bFirstTestCase = false, bResetDB = dumpURL != null && nMode != UnitTest.MODE_DIRTY)
               {
                  UnitTestCase testCase = (UnitTestCase)itr.next();

                  if (!isEnabled(utest, testCase))
                  {
                     nTestCase++;
                     continue;
View Full Code Here

Examples of org.auraframework.test.UnitTestCase

    public static Object getPerformanceMetrics(@Key("metricsType") String metricsType,
            @Key("testName") String testName) throws Exception {

        logger.info(String.format("Loading '%s' Performance metrics for test: %s", metricsType, testName));

        UnitTestCase test = (UnitTestCase) TestSetRunnerState.getInstance().getInventory().get(testName);
        String goldFileName = test.getGoldFileName();

        PerfResultsUtil.PerformanceMetrics type = PerfResultsUtil.PerformanceMetrics
                .getPerformanceMetricsFromType(metricsType);
        File file = type.getFile(goldFileName);
View Full Code Here

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

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

     * @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

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

     * @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

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

     * @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
Copyright © 2018 www.massapi.com. 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.