TLDR
Unit test coverage for multiple Actions and the CatanController.

Main work
- Using ChatGPT to scaffold additional test files based off of existing test files.
- Debugging issues with
@Controllertests (serialization issues).
Challenges
- Copying examples into ChatGPT and copying output from ChatGPT.
- Should probably explore integrated solutions like Copilot.
- Also have a graphics card coming, so could potentially run LLMs locally.
- Bizarre behavior from
@RequestBodyannotation.- Test fails because endpoint expects request body to be
valuerather than{"key": "value"}, even when using a DTO likeStartGameDTO. - All documents / comments online claim the full JSON string would be expected by Spring, but simple
valuehas been working for my REST calls since project inception. - For now, not a big deal and not worth a wild goose chase.
- Test fails because endpoint expects request body to be
Learnings
- Possible that the
HTTPMessageConverterthat is being used by Spring under-the-hood could be expecting / determining this bizarre serialization.