feature/service-layer-tests #2

Merged
forgejo merged 2 commits from feature/service-layer-tests into main 2026-08-29 11:07:47 +02:00
Owner
No description provided.
- Refactor extractWordFrequencies to return List<WordFrequencyModel> instead of Map<String, Long>
- Rename WordFrequencyAnalyzerTest to WordFrequencyAnalyzerImplTest (covers implementation class)
- Add WordFrequencyServiceImplTest with 12 tests (validation delegation, analyzer mocking, model wrapping, 404/400 errors)
- Add validation component unit tests (14 tests across 3 files)
- Total: 26 new tests (55 total with existing controller/analyzer tests)
- Create WordFrequencyMapper component with from(String word, int frequency)
- Remove all new WordFrequencyModel(...) from analyzer, service, and tests
- Add WordFrequencyMapperTest (2 tests)
- No behavioral changes, same 57 tests passing
forgejo deleted branch feature/service-layer-tests 2026-08-29 11:07:47 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/wordcount!2
No description provided.