• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / commons-io / 457
88%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2019 03:18PM UTC
Jobs 1
Files 142
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
457

push

travis-ci

garydgregory
IO-628: Migration to JUnit Jupiter (#97)

* Use fail instead of throwing an AssertionFailedError

Use JUnit's Assert#fail in order to fail tests with the proper JUnit
API, instead of explicitly throwing the underlying exception.

This change makes the tests easier to read and maintain, and will help
facilitate the migration to JUnit Jupiter.

* Remove outdate javadoc references to TestCase#setUp()

In JUnit 3, in order to run some code before each test, you would
extend junit.framework.TestCase and override its setUp() method.

In JUnit 4 this is no longer the case, and you simply need to annotate
the method with org.junit.Before, as is done in the classes in
question.

This patch removes old javadoc comments that reference the TestCase
method which are no longer relevant, and are probably outdated remains
from the days the project used JUnit 3.

* Standardize org.junit.Assert imports

The de-facto standard for using org.junit.Assert methods in the
project is to statically import its method.
However, some places use the class directly and call methods on it.
This patch standardizes the approach, and makes sure all the usages of
org.junit.Assert statically import methods in order to have a
consistent coding standard throughout the project's tests.

* Statically import org.junit.Assume methods

Statically import methods from org.junit.Assume in order to make its
usages consistent with org.junit.Assert's usage pattern.

* Migrate test suite to JUnit Jupiter

This patch upgrades the project's testing framework from JUnit 4.12
to the modern JUnit Jupiter 5.5.4.
Since JUnit 5 Jupiter is not backwards compatible to JUnit 4.x (or
even JUnit Vintage), this patch is a bit large, even though a lot of
the changes are merely cosmetic (such as changing the argument order,
see details below). In order to make the reviewer's task as easy as
possible, this patch does not presume to use JUnit Jupiter's best
practices and all ... (continued)

5237 of 5864 relevant lines covered (89.31%)

22603.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 457.1 06 Oct 2019 03:18PM UTC 0
89.31
Travis Job 457.1
Source Files on build 457
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #457
  • eae791d5 on github
  • Prev Build on master (#440)
  • Next Build on master (#458)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc