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

apache / commons-csv / 289 / 2
98%
master: 98%

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

06 Oct 2019 12:16PM UTC coverage: 92.928%. Remained the same
289.2

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

Source Files on job 289.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 230
  • Travis Job 289.2
  • 485929e6 on github
  • Prev Job for on master (#287.2)
  • Next Job for on master (#290.2)
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