#605 Junit Internal class used in TestRunner, breaks F19 build
Closed: Fixed Opened by vakwetu.

Problem is the use of runMain() which has been changed to have private access in latest junit.

Here is the code for runMain() -- which in my fix, I essentially expropriated to replace the call to runMain().

public Result runMain(JUnitSystem system, String... args) {
            system.out().println("JUnit version " + Version.id());
            List<Class<?>> classes= new ArrayList<Class<?>>();
            List<Failure> missingClasses= new ArrayList<Failure>();
            for (String each : args)
                  try {
                        classes.add(Class.forName(each));
                  } catch (ClassNotFoundException e) {
                        system.out().println("Could not find class: " + each);
                        Description description= Description.createSuiteDescription(each);
                        Failure failure= new Failure(description, e);
                        missingClasses.add(failure);
                  }
            RunListener listener= new TextListener(system);
            addListener(listener);
            Result result= run(classes.toArray(new Class[0]));
            for (Failure each : missingClasses)
                  result.getFailures().add(each);
            return result;
      }

as of: http://junit4.sourcearchive.com/documentation/4.7-2ubuntu1/JUnitCore_8java-source.html


Commit:

d27b684ce9221edcd11e7a746f8e35e2d39b2a43

Metadata Update from @vakwetu:
- Issue assigned to jmagne
- Issue set to the milestone: 10.0.2

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1175

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata