# TODO

## Codebase Analysis (2026-06-18)
- [x] Bug analysis (security-auditor)
- [x] Code reuse / duplication analysis (java-architect)
- [x] Unit test gap analysis (java-tester)
- [x] Decide which findings to act on with user

## Fixes (branch: fix/bugs-reuse-tests)
- [x] Centralize header generation in BaseService
- [x] Fix HTTP response resource leaks (try-with-resources everywhere)
- [x] Use HttpStatusCode enum consistently in OauthService
- [x] Cache ObjectMapper in BaseService (was rebuilt per call)
- [x] Fix typos in public API params (cliendId, adderss)
- [x] Fix wrong fixture in RateResponseTest (was loading tracking-response.json)
- [x] Add service-layer unit tests (mocked HttpClient, all status branches)
- [x] Add tests for utils/enums/AuthToken
- [x] Migrate existing tests to JUnit 5
- [x] Check HTTP status before parsing response body (checkForError helper)
- [x] Avoid capturing access_token in Debug object (redaction in OauthService.debug)
- [x] Run full build and test suite (38 tests passing, mvn package green)
--> All planned fixes complete; not yet committed

## Notes
- Project: USPS API Java client (io.ljunggren.usps.api)
- 32 main java files, Maven build
