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

dropwizard / dropwizard / 3325
86%

Build:
DEFAULT BRANCH: master
Ran 23 Jan 2017 08:52PM UTC
Jobs 1
Files 366
Run time 19s
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
3325

push

travis-ci

joschi
Add support for HTTP client managed by DropwizardAppRule (#1891)

A common use case for the users of `DropwizardAppRule` is creating an HTTP
client which performs requests against the tested server. I think we could
make it little bit easier by providing a method for `DropwizardAppRule`
which creates a new Jersey HTTP client client managed by the rule. The user
doesn't need to care about creating own client and shutting it down. The
created is also have default sane timeouts in contrary to the default
Jersey client. In the end, this allows to write tests like that:

```java
RULE.client().target("http://localhost:" + RULE.getLocalPort() + "/hello-world")
    .queryParam("name", name.get())
    .request()
    .get(Saying.class);
```

It makes testing easy for users who don't use the dropwizard-client module or
 find it excessive for testing.

12 of 12 new or added lines in 1 file covered. (100.0%)

5898 of 7206 relevant lines covered (81.85%)

71.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
100.0
dropwizard-testing/src/main/java/io/dropwizard/testing/junit/DropwizardAppRule.java
Jobs
ID Job ID Ran Files Coverage
1 3325.1 23 Jan 2017 08:52PM UTC 0
81.85
Travis Job 3325.1
Source Files on build 3325
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3325
  • ec084500 on github
  • Prev Build on master (#3320)
  • Next Build on master (#3332)
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