发布

  • [OPIK-6891] [BE] test: guard the trace deletion-events bridge with ArchUnit (#7390)

    frostbyte_neo 发布于 2026-07-07 14:31:39 +00:00

    Add an ArchUnit architectural test asserting that only TraceServiceImpl may call
    TraceDAO.delete, so a future refactor adding a new trace-delete path can't
    silently bypass the deletion-events bridge capture. Retention paths are separate
    methods and intentionally out of scope.

    Introduce ArchUnit (archunit-junit5 1.4.2 — bundles ASM with Java 25 support) as
    a test dependency.

    下载附件