Files
qavion-time-tracker-assessment/backend
achim 6029085d1c test(backend): add happy-path test pyramid — repo, service, e2e
- TimeEntryRepositoryTest (@DataJpaTest): inserts entries across two weeks,
  asserts date-range query returns only the correct slice
- ReportServiceTest (@ExtendWith(MockitoExtension)): mocks repository,
  covers weekly aggregation, parseIsoWeekToMonday returning a Monday,
  and monthly breach detection (both time and cost thresholds)
- TimeEntryEndToEndTest (@SpringBootTest + MockMvc): POST a 90-min entry,
  GET /api/reports/weekly, assert weekTotalMinutes=90

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 11:42:42 +02:00
..