{ "version": "1.1", "id": "messaging-testkit-c04", "title": "계약을 상속하면 일어나는 것", "question": "어댑터는 계약 테스트를 어떻게 받는가?", "type": "architecture", "direction": "LR", "audience": [ "이 저장소의 구조를 읽는 사람" ], "summary": "어댑터에는 계약을 상속하는 것 말고 다른 진입 경로가 없어 테스트 하나를 빼려면 계약 파일 자체를 고쳐야 한다.", "alt": "어댑터 중첩 클래스가 MessagingAdapterContract 를 상속해 계약 테스트 전체를 받는다.", "long_description": "SSOT 는 어댑터에 계약을 상속하는 것 말고 다른 진입 경로가 없다고 적는다. 테스트 하나를 빼려면 계약 파일 자체를 고쳐야 한다.", "source_context": { "document": "/home/donghyeon/workspace/chat-gpt-container/document-haness/docs/clean-architecture-backend-template/final/document.md", "document_sha256": "8071fe71b3359d9cf60b95909c26c7b50653ce2f22bbc5fcf6988719bb91236d", "anchor": { "kind": "line", "value": 39711, "line": 39711 } }, "composition": { "profile": "ports-adapters", "diagram_only": true, "reference_ids": [ "order-ports-adapters" ], "rationale": "계약을 상속하는 경로 하나뿐이라는 것이 논지다.", "focus_node": "contract" }, "groups": [], "nodes": [ { "id": "nested", "label": "어댑터 중첩 클래스", "kind": "adapter", "role": "inbound-adapter", "evidence": [ { "start_line": 39711, "end_line": 39760 } ], "assumption": false }, { "id": "inport", "label": "상속 진입점", "kind": "interface", "role": "port", "evidence": [ { "start_line": 39711, "end_line": 39760 } ], "assumption": false }, { "id": "contract", "label": "MessagingAdapterContract", "kind": "domain", "role": "core", "evidence": [ { "start_line": 39711, "end_line": 39760 } ], "assumption": false, "emphasis": "primary" }, { "id": "outport", "label": "계약 테스트 목록", "kind": "interface", "role": "port", "evidence": [ { "start_line": 39711, "end_line": 39768 } ], "assumption": false }, { "id": "tests", "label": "계약 테스트 실행", "kind": "adapter", "role": "outbound-adapter", "evidence": [ { "start_line": 39711, "end_line": 39768 } ], "assumption": false, "details": [ "@Test 전체" ] } ], "edges": [ { "id": "a", "from": "nested", "to": "inport", "label": "상속", "kind": "request", "evidence": [ { "start_line": 39711, "end_line": 39760 } ], "assumption": false }, { "id": "b", "from": "inport", "to": "contract", "label": "계약 편입", "kind": "request", "evidence": [ { "start_line": 39711, "end_line": 39760 } ], "assumption": false, "emphasis": "primary" }, { "id": "c", "from": "contract", "to": "outport", "label": "테스트 목록", "kind": "request", "evidence": [ { "start_line": 39711, "end_line": 39768 } ], "assumption": false }, { "id": "d", "from": "tests", "to": "outport", "label": "전체 실행", "kind": "request", "evidence": [ { "start_line": 39711, "end_line": 39768 } ], "assumption": false, "style": "dashed" } ], "legend": [], "metadata": {} }