Skip to content

Commit

Permalink
Removed explicit constructor of JUnitCore
Browse files Browse the repository at this point in the history
The constructor was used to create the RunNotifier. Now the
initial value of the RunNotifier is provided in its declaration.

Additionally added the final modifiert to the RunNotifier in
order to make it clear, that it never changes.
  • Loading branch information
stefanbirkner committed Sep 27, 2011
1 parent 130408b commit 143c334
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/java/org/junit/runner/JUnitCore.java
Expand Up @@ -25,14 +25,7 @@
* @see org.junit.runner.Request * @see org.junit.runner.Request
*/ */
public class JUnitCore { public class JUnitCore {
private RunNotifier fNotifier; private final RunNotifier fNotifier= new RunNotifier();

/**
* Create a new <code>JUnitCore</code> to run tests.
*/
public JUnitCore() {
fNotifier= new RunNotifier();
}


/** /**
* Run the tests contained in the classes named in the <code>args</code>. * Run the tests contained in the classes named in the <code>args</code>.
Expand Down

0 comments on commit 143c334

Please sign in to comment.