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

apache / commons-csv / 289
98%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2019 12:18PM UTC
Jobs 1
Files 11
Run time 1s
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
289

push

travis-ci

garydgregory
<a href="https://github.com/apache/commons-csv/commit/<a class=hub.com/apache/commons-csv/commit/485929e626e479079b408501f7253ac4daedd3fc">485929e62<a href="https://github.com/apache/commons-csv/commit/485929e626e479079b408501f7253ac4daedd3fc">&quot;&gt;CSV-252: Clean up exception handling (#50)

* CSV-252: Clean up assertions using assertThrows

As a followup to commit </a><a class="double-link" href="https://github.com/apache/commons-csv/commit/<a class="double-link" href="https://github.com/apache/commons-csv/commit/e2f0a4d8a83a41eaa984086636a3712c682307ea">e2f0a4d8a</a>">e2f0a4d8a</a><a href="https://github.com/apache/commons-csv/commit/485929e626e479079b408501f7253ac4daedd3fc"> that
introduced JUnit Jupiter to the project, this patch leverages the new
Assertions#assertThrows method to clean up tests for expected
exceptions.

Instead of the somewhat clunky structure common in JUnit 4 tests:

```
try {
    someMethod();
    fail(&quot;SomeException should be thrown&quot;);
} catch (SomeException e) {
    // Expected...

    // Possibly some assertion on e
}
```

JUnit Jupiter allows the following elegant syntax:

```
SomeException e = assertThrows(SomeException.class, () -&gt; someMethod());
// Possibly some assertions on e
```

* CSV-252: Remove redundant throws clauses from tests

933 of 1004 relevant lines covered (92.93%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
2 289.2 06 Oct 2019 12:18PM UTC 0
92.93
Travis Job 289.2
Source Files on build 289
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #289
  • 485929e6 on github
  • Prev Build on master (#287)
  • Next Build on master (#290)
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