Permalink
Commits on Oct 16, 2017
  1. Don't build with Oracle JDK 7 on Travis anymore

    stefanbirkner committed Oct 16, 2017
    Travis switched from Ubuntu Precise images to Ubuntu Trusty images. The
    Trusty images don't have installed Oracle JDK 7. See
    travis-ci/travis-ci#7884 We still build JUnit 4 with OpenJDK 7.
    Therefore it is fine to not build it with Oracle JDK 7.
  2. Install OpenJDK 6 on Travis

    stefanbirkner committed Oct 7, 2017
    Travis switched from Ubuntu Precise images to Ubuntu Trusty images. The
    Trusty images don't have installed OpenJDK 6 by default. See
    travis-ci/travis-ci#8199
  3. Build with Maven 3.1.1 (using Maven Wrapper)

    stefanbirkner committed Oct 15, 2017
    This makes the build independent from the Maven version that is
    installed on the build machine. E.g. Travis has Maven 3.5.6 installed
    that does not support Java 6 anymore.
    
    Maven version 3.1.1 is used because all newer version don't support
    Java 1.5.
Commits on Aug 22, 2017
Commits on Aug 8, 2017
  1. Fix dead link to the ant task in FAQ (#1478)

    rybak committed with kcooney Aug 8, 2017
    Documentation to the ant junit task has been moved to another location.
Commits on Aug 7, 2017
  1. deprecate RuleChain

    panchenko committed with kcooney May 25, 2017
    Closes #1445
Commits on Jul 29, 2017
Commits on Jun 23, 2017
  1. Provide helpful message if parameter cannot be set.

    stefanbirkner committed Jun 13, 2017
    For private @Parameter fields is users get an exception like
    "java.lang.IllegalAccessException: Class ... can not access a member
    of class X with modifiers private" The new message "Cannot set
    parameter 'parameter'. Ensure that the the field 'parameter' is
    public." tells the user what they should do.
    
    The reason for adding this feature is the Stackoverflow question
    https://stackoverflow.com/questions/44522046/reflection-exception-in-parameterized-junit-test-using-array-parameter/44522988
Commits on Jun 14, 2017
Commits on Jun 13, 2017
Commits on Jun 8, 2017
Commits on May 26, 2017
Commits on May 25, 2017
  1. Avoid unnecessary call to ParentRunner.createTestClass() for tests no…

    kcooney committed May 5, 2017
    …t annotated with @RunWith.
  2. Update Theories to pass the TestClass to BlockJUnit4ClassRunner.

    kcooney committed May 5, 2017
    This avoids repeated class scanning.
  3. Reuse `TestClass` for parameterized tests.

    kcooney committed May 5, 2017
    The `BlockJUnit4ClassRunnerWithParameters` created a new instance of
    `TestClass` for each parameter set. This led to repeated class
    scanning and noticeable memory allocation. Reusing the `TestClass`
    avoids theses side effects.
    
    Fixes #1046.
  4. Remove fast-tests maven target.

    svzdvd committed with kcooney May 25, 2017
    Many of our tests store data in static fields, so the tests cannot be run in parallel.
    
    Fixes #1297
Commits on May 19, 2017
Commits on May 6, 2017
Commits on May 5, 2017
  1. Replace uses of synchronized(something) with ReentrantLock. (#1343)

    kcooney committed May 5, 2017
    In almost all cases, this is more efficent, especially if there is any
    contention on the locks.
Commits on Apr 21, 2017
Commits on Apr 17, 2017
Commits on Mar 7, 2017
  1. Fix TemporaryFolderUsageTest on Windows (#1428)

    powazny committed with kcooney Mar 7, 2017
    Fix newFolderWithPathStartingWithFileSeparatorThrowsIOException Test run on Windows OS
Commits on Mar 2, 2017
  1. Refactor BlockJUnit4ClassRunner.possiblyExpectingExceptions

    alb-i986 committed with marcphilipp Apr 25, 2016
    Extract to local variable the result of getExpectedException(), thus saving one extra call.
Commits on Feb 27, 2017
  1. ExternalResource: declare after() to throw Throwable (#1421)

    alb-i986 committed with kcooney Feb 27, 2017
    This allows clients to call methods that throw checked exceptions without having to catch and wrap checked exceptions.
Commits on Feb 25, 2017
  1. remove an an extra word

    grimreaper committed with marcphilipp Feb 25, 2017
Commits on Feb 14, 2017
  1. Tests expecting AssumptionViolatedException should be marked as passe…

    alb-i986 committed with kcooney Feb 14, 2017
    …d, not skipped (#1291)
    
    Tests annotated with `@Test(expected = AssumptionViolatedException.class)`
    which throw AssumptionViolatedException should be marked as passing, not skipped.
    
    Fixes #1290
  2. Classes annotated with @RunWith(Suite.class) do not need to be public. (

    kcooney committed Feb 14, 2017
    #1408)
    
    This fixes a regression in JUnit 4.12 introduced by
    junit-team@1d97da7.
Commits on Feb 12, 2017
  1. Fix FrameworkMember so fields never shadow other fields.

    kcooney committed Jan 23, 2017
    Previously, if a class had a @Rule field  with the same name as a @Rule field in
    a superclass, the field was ignored. The same would happen for @ClassRule
    fields. With this commit, the static fields on the class are applied as rules.
    
    Closes #1414
  2. Fix FrameworkMember so static methods do not shadow other methods.

    kcooney committed Jan 18, 2017
    Previously, if a class had a @ClassRule method with the same name as a
    @ClassRule method a superclass, the method was ignored. The same would happen
    for @BeforeClass methods and @AfterClass methods. With this commit, the
    static methods on the class are called.