bilhej/backend/src
Joakim Mörling d27bde2fbe test: add PaymentControllerTest with 4 cases
- shouldReturn403WhenNotAuthenticated: verifies the endpoint requires
  a valid JWT token (anyRequest().authenticated() enforcement)
- shouldMarkOrderAsPaidSuccessfully: calls POST with @WithMockUser,
  verifies response includes id, status=paid, and amountPaid=49.00
- shouldReturn404WhenOrderNotFound: mocks service to throw
  OrderNotFoundException, expects 404 response
- Test helper creates minimal Order entity with explicitly set id,
  plate, status, and amountPaid for realistic response mapping
2026-05-15 20:30:02 +02:00
..
main feat: add POST /api/payment/{orderId}/pay mock payment endpoint 2026-05-15 20:29:42 +02:00
test/java/se/bilhalsning test: add PaymentControllerTest with 4 cases 2026-05-15 20:30:02 +02:00