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

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

Build:
Build:
LAST BUILD BRANCH: data-model-update
DEFAULT BRANCH: master
Ran 09 Feb 2017 08:13PM 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
945

Pull #214

travis-ci

web-flow
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
Pull Request #214: tests: Use MockitoRule with strict stubs

350 of 800 relevant lines covered (43.75%)

0.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 945.1 (TYPE=test GITHUB_TOKEN=[secure]) 09 Feb 2017 08:13PM UTC 0
43.75
Travis Job 945.1
Source Files on build 945
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #945
  • Pull Request #214
  • PR Base - findbugs-exclude (#942)
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