private void execClass()

in gepard-core/src/main/java/com/epam/gepard/common/threads/TestClassExecutionThread.java [233:254]


    private void execClass(final TestClassExecutionData o) {
        classData = o;
        CLASS_DATA_IN_CONTEXT.set(o);
        try {
            HtmlRunReporter reporter = o.getHtmlRunReporter();
            reporter.hiddenBeforeTestClassExecution();
            core.addListener(reporter);

            Result result = core.run(Computer.serial(), o.getTestClass());
            for (Failure failure : result.getFailures()) {
                LOGGER.debug(failure.toString());
            }
            classData.setCountOfRuns(result.getRunCount());
            core.removeListener(reporter);
            reporter.hiddenAfterTestClassExecution();
        } catch (Throwable e) {
            //this is gas
            LOGGER.debug("Thread: got EX during JUnitCore execution.", e);
        }
        CLASS_DATA_IN_CONTEXT.set(null);
        classData = null;
    }