Skip to content

feat: Add unit tests for object-service spec#99

Open
rubenvdlinde wants to merge 1 commit intodevelopmentfrom
feature/object-service
Open

feat: Add unit tests for object-service spec#99
rubenvdlinde wants to merge 1 commit intodevelopmentfrom
feature/object-service

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

Summary

  • Add 10 unit tests verifying the RegisterObjectFetcher (object-service spec)
  • Tests cover mapper resolution from IAppConfig (OBJ-001 through OBJ-007)
  • Tests cover OpenRegister service caching (OBJ-010 through OBJ-014)
  • Tests cover URI-format ID cleaning (OBJ-031, OBJ-032)
  • Tests cover toArray conversion for jsonSerialize and arrays (OBJ-040-042)

Test plan

  • All 10 unit tests pass locally
  • Exception handling verified for unconfigured types
  • Service caching verified (container.get called only once)

Add 10 unit tests verifying RegisterObjectFetcher:
- Mapper resolution from IAppConfig (OBJ-001 through OBJ-007)
- OpenRegister service caching (OBJ-010 through OBJ-014)
- URI-format ID cleaning (OBJ-031, OBJ-032)
- toArray conversion for jsonSerialize and plain arrays (OBJ-040-042)
- Exception handling for unconfigured types
Base automatically changed from feature/enrich-openspec-specs to development March 23, 2026 21:37
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.

1 participant