Skip to content

TT-4337: CRUDs calendar coverage#315

Open
googsvg wants to merge 1 commit intomainfrom
TT-4337-java-sdk-for-crud-calendar
Open

TT-4337: CRUDs calendar coverage#315
googsvg wants to merge 1 commit intomainfrom
TT-4337-java-sdk-for-crud-calendar

Conversation

@googsvg
Copy link
Copy Markdown
Contributor

@googsvg googsvg commented Apr 30, 2026

Summary

  • Audit of all 7 Nylas v3 Calendar API endpoints confirmed full coverage (list, find, create, update, destroy, getAvailability, getFreeBusy) — no
    implementation changes required
  • Added comprehensive unit test coverage for all calendar request models and query params that were previously untested
  • No production code changed; all existing behavior is backward compatible

What's covered

New test classes:

  • CreateCalendarRequestTests — serialization round-trip (all fields + name-only), Builder (full + minimal)
  • UpdateCalendarRequestTests — serialization round-trip (all fields + all-null), Builder (full + empty)
  • ListCalendarsQueryParamsTests — Builder (all fields + all-null)

Additions to existing test classes:

  • CrudTests — added query params propagation test for list; added assertNull assertions to list (no params) and find to verify null is correctly
    passed through
  • OtherMethodTests — added getAvailability test covering roundTo field (the non-deprecated replacement for roundTo30Minutes)

Test results

31 tests passing, 0 failures

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.47%. Comparing base (ded101e) to head (565ad04).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #315   +/-   ##
=========================================
  Coverage     82.47%   82.47%           
  Complexity      357      357           
=========================================
  Files            37       37           
  Lines          1027     1027           
  Branches         95       95           
=========================================
  Hits            847      847           
  Misses          121      121           
  Partials         59       59           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants