Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 14, 2015
  1. @baev

    remove redundant interface modifiers

    baev authored committed
Commits on Apr 13, 2015
  1. Make injection type explicit.

    Makes it easier to understand the code.
  2. @marcphilipp

    Merge pull request #1114 from stefanbirkner/parameterized-example

    marcphilipp authored
    Use simpler example for Parameterized runner.
Commits on Apr 7, 2015
  1. Replace example with addition example. Fixes #1088.

    The new example does not depend on external classes anymore. Hence it
    is self-contained and can be run by simply copying it.
  2. Remove some tests.

    We don't have to test the test and failure naming for tests with
    @Parameter annotation again, because it is not different from the test
    that sets the parameters via constructor.
  3. Separate tests for failure and run count.

    A test should only test a single thing.
Commits on Apr 5, 2015
  1. @Tibor17

    StopWatch does not need to be abstract.

    Tibor17 authored committed
    Fixes #1110.
Commits on Mar 29, 2015
  1. @hansjoachim

    Prefer interfaces over concrete classes

    hansjoachim authored committed
    Makes code easier to scan by removing unnecessary noise.
  2. @hansjoachim

    Unnecessary semicolon

    hansjoachim authored committed
  3. @hansjoachim

    Move the array designator to the type

    hansjoachim authored committed
Commits on Mar 2, 2015
  1. @marcphilipp

    Merge pull request #1087 from mustafau/patch-1

    marcphilipp authored
    Use Timeout.millis(long) in javadoc for Timeout class
Commits on Mar 1, 2015
  1. @mustafau

    Use Timeout.millis(long) in javadoc for Timeout class

    mustafau authored
    Javadoc for Timeout class should use Timeout.millis(long) instead of deprecated Timeout(int) constructor
  2. @adriancole @kcooney

    Corrects typo in source example of ParametersRunnerFactory.

    adriancole authored kcooney committed
    Closes #1085
  3. @The-Alchemist @kcooney
  4. @hansjoachim @kcooney

    Changed line endings to LF

    hansjoachim authored kcooney committed
    SonarQube had problems scanning this file because it believed it got
    multiple blame annotations for the same line.
    This seemed to be the only file with CR line endings, so I changed it
    to LF which is consistent with the files in the same directory.
    Closes #1086
  5. @sbrannen @kcooney

    Ensure exceptions from methodBlock() don't result in unrooted tests.

    sbrannen authored kcooney committed
    The introduction of the runLeaf() method in BlockJUnit4ClassRunner in
    JUnit 4.9 introduced a regression with regard to exception handling.
    Specifically, the invocation of methodBlock() is no longer executed
    within a try-catch block as was the case in previous versions of JUnit.
    Custom modifications to methodBlock() or the methods it invokes may in
    fact throw exceptions. In such cases, exceptions thrown from
    methodBlock() cause the current test execution to abort immediately. As
    a result, the failing test method is unrooted in test reports, and
    subsequent test methods are never invoked. Furthermore, RunListeners
    registered with JUnit are not notified.
    This commit addresses this issue by wrapping the invocation of
    methodBlock() within a try-catch block. If an exception is not thrown,
    the resulting Statement is passed to runLeaf(). If an exception is
    thrown, it is wrapped in a Fail statement which is passed to runLeaf().
    Closes #1066
    Closes #1082
Commits on Jan 25, 2015
  1. @kcooney
Commits on Jan 18, 2015
  1. @acanda @kcooney

    Fix swallowed exception in Request.classes(...)

    acanda authored kcooney committed
    The method classes(Computer computer, Class<?>... classes) in
    org.junit.runner.Request swallows an InitializationError and throws a
    new RuntimeException instead when it cannot create a request. This
    prevents the user from finding out why the request could not be created.
    This change replaces throwing a new RuntimeException with generating a
    proper error report. The report contains the causes of the
    InitializationError so the user has a chance to find out what is causing
    the problem.
  2. @jorgeejgonzalez @kcooney

    Changed the name of the constructor variable klass to testClass revea…

    jorgeejgonzalez authored kcooney committed
    …l its true purpose.
    Closes #1071
Commits on Jan 14, 2015
  1. @marcphilipp

    Merge pull request #1069 from hansjoachim/plugin

    marcphilipp authored
    Upgrade maven-surefire-plugin to latest version
  2. @hansjoachim
Commits on Jan 4, 2015
  1. @marcphilipp @kcooney

    Fix Javadoc generation on JDK 8.

    marcphilipp authored kcooney committed
  2. @NarendraPathai @kcooney

    Added support for strict verification of resource deletion in Tempora…

    NarendraPathai authored kcooney committed
    …ryFolder rule.
    Closes #1044
  3. @Stephan202 @kcooney

    Improve error message for assertArrayEquals() when multi-dimensional …

    Stephan202 authored kcooney committed
    have different lengths.
    Previously, JUnit's assertion error message would indicate only that some array
    lengths x and y were unequal, without indicating whether this pertained to the
    outer array or some nested array. Now, in case of a length mismatch between two
    nested arrays, Junit will tell at which indices they reside.
    Closes #1054
    Closes #803
Commits on Dec 21, 2014
  1. @marcphilipp

    Merge pull request #1051 from NarendraPathai/Issue1035

    marcphilipp authored
    PR to utilize 'use' option for cross-referencing javadoc pages #1035
Commits on Dec 19, 2014
  1. @NarendraPathai
Commits on Dec 15, 2014
  1. @marcphilipp
  2. @marcphilipp

    Merge pull request #1042 from junit-team/fix-compiler-warnings

    marcphilipp authored
    Fix Eclipse compiler warnings
  3. @marcphilipp

    Suppress serialization warning

    marcphilipp authored
    FilterNotCreatedException does not add any fields to Exception.
  4. @marcphilipp
  5. @marcphilipp

    Add type wildcard

    marcphilipp authored
  6. @marcphilipp
  7. @marcphilipp
  8. @marcphilipp
  9. @marcphilipp
Something went wrong with that request. Please try again.