Skip to content

Layer 1 test improvements: fixture extraction and REST integration test #29

@mdproctor

Description

@mdproctor

Context

Code review of Layer 1 Part B (devtown#27) flagged two test quality nits.

Issues

1. Test fixture copy-pasted in NaivePrReviewServiceTest

The PrPayload fixture is constructed identically in all three test methods. A @BeforeEach field would eliminate the duplication and make the single test scenario explicit.

2. No @QuarkusTest integration test for PrReviewResource

DevtownBootTest verifies boot and CDI discovery. Nothing exercises POST /api/reviews end-to-end with a real Quarkus context. Jackson serialization of records is untested at the integration level (likely fine given quarkus-rest-jackson is present, but unverified).

A @QuarkusTest with @TestHTTPEndpoint(PrReviewResource.class) should be added before Layer 2 begins adding real implementations.

Refs #27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions