Package org.moyrax.reporting

Examples of org.moyrax.reporting.TestCase


      List<HtmlElement> testOutput = result.getElementsByTagName("li");

      if (matcher.lookingAt()) {
        TestSuite module = getModule(matcher);
        TestCase test = buildTest(matcher);

        if (currentModule != module) {
          if (currentModule != null) {
            currentModule.done();
          }

          currentModule = module;
        }

        for (HtmlElement outputLine : testOutput) {
          test.print(outputLine.getFirstChild().asXml());
        }

        module.addTest(test);
      }
    }
View Full Code Here


    if (matcher.group(TEST_NAME) == null) {
      throw new RuntimeException("The test name cannot be null.");
    }

    TestCase test = new TestCase(matcher.group(TEST_NAME));

    test.start(startTime);

    test.done(Integer.valueOf(matcher.group(NUM_TESTS)),
        Integer.valueOf(matcher.group(NUM_FAILURES)));

    return test;
  }
View Full Code Here

TOP

Related Classes of org.moyrax.reporting.TestCase

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.