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

yarpc / yarpc-java / 947
44%
master: 83%

Build:
Build:
LAST BUILD BRANCH: data-model-update
DEFAULT BRANCH: master
Ran 09 Feb 2017 09:02PM UTC
Jobs 1
Files 47
Run time 3s
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
947

push

travis-ci

abhinav
tests: Use MockitoRule with strict stubs

This replaces all uses of `MockitoAnnotations.initMocks` with
`MockitoRule` and [`STRICT_STUBS`].

MockitoRule automatically injects mocks for `@Mock` annotations and
verifies them to catch stubbing issues. This even affects mocks created
manually in that test with `Mockito.mock(..)`, hence the change in
DispatcherTest which doesn't have any `@Mock` annotations.

Note that strict stubs are  intended to be the default behavior in
Mockito 3. Until then we'll have to remember to pass the argument to the
rule everywhere we use mocks.

  [`STRICT_STUBS`]: http://static.javadoc.io/org.mockito/mockito-core/2.7.5/org/mockito/quality/Strictness.html#STRICT_STUBS

350 of 800 relevant lines covered (43.75%)

0.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 947.1 (TYPE=test GITHUB_TOKEN=[secure]) 09 Feb 2017 09:02PM UTC 0
43.75
Travis Job 947.1
Source Files on build 947
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #947
  • c70ba716 on github
  • Prev Build on mockito-rule (#944)
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

© 2025 Coveralls, Inc