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

mbland / tomcat-servlet-testing-example
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: bump-github-actions
DEFAULT BRANCH: main
Repo Added 03 Nov 2023 08:48PM UTC
Files 3
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

LAST BUILD ON BRANCH test-matchers-and-other-tweaks
branch: test-matchers-and-other-tweaks
CHANGE BRANCH
x
Reset
  • test-matchers-and-other-tweaks
  • frontend-vite-5-vitest-1
  • github-actions-revert-on-changes
  • main
  • tomcat-access-logs-stdout

25 Nov 2023 11:22PM UTC coverage: 100.0%. Remained the same
6991970418

Pull #7

github

mbland
Add hasContentType matcher, HTTP status consts

This matcher removes a lot of boilerplate from checking the Content-Type
of a HttpResponse. It's based on the Hamcrest API with the help of these
tutorials:

- https://hamcrest.org/JavaHamcrest/tutorial
- https://www.baeldung.com/hamcrest-custom-matchers

This could be generalized to handle any header.  However, I want to keep
it straightforward for now, as a good basic example of how to write a
custom matcher.

Also took the opportunity to replace bare HTTP status codes (200, et.
al.) with constants defined on jakarta.servlet.http.HttpServletResponse.
Pull Request #7: Hoist up Node Gradle plugin, set TestTomcat baseDir, add hasContentType matcher, HTTP status consts

5 of 5 branches covered (100.0%)

Branch coverage included in aggregate %.

47 of 47 relevant lines covered (100.0%)

1.19 hits per line

Relevant lines Covered
Build:
Build:
47 RELEVANT LINES 47 COVERED LINES
1.19 HITS PER LINE
Source Files on test-matchers-and-other-tweaks
  • Tree
  • List 4
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
6991970418 test-matchers-and-other-tweaks Add hasContentType matcher, HTTP status consts This matcher removes a lot of boilerplate from checking the Content-Type of a HttpResponse. It's based on the Hamcrest API with the help of these tutorials: - https://hamcrest.org/JavaHamcrest/tutor... Pull #7 25 Nov 2023 11:24PM UTC mbland github
100.0
6991949404 test-matchers-and-other-tweaks Merge b987997f6 into da33040c1 Pull #7 25 Nov 2023 11:20PM UTC web-flow github
100.0
See All Builds (186)
  • Repo on GitHub
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