# ericksontest/case-api architecture

> Architecture diagram of the GitHub repository ericksontest/case-api, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ericksontest/case-api
- Repository: https://github.com/ericksontest/case-api

## Overview

Case API is a Java API-test automation learning project, not a production service. Its principal workflow is for the test suite to start a local fictional API, create a case, poll for its delayed availability, and check that an invalid reference is rejected. The polling helper is a distinct internal layer. The README documents these behaviors, but no source excerpts were provided, so relationships below rely on README evidence; fixture internals and the roles of individual support classes are not expanded.

Main entry points: [`src/test/java/io/raditc/interview/CreateCaseIT.java`](https://github.com/ericksontest/case-api/blob/main/src/test/java/io/raditc/interview/CreateCaseIT.java) (Case scenarios), [`src/test/java/io/raditc/interview/helpers/CasePolling.java`](https://github.com/ericksontest/case-api/blob/main/src/test/java/io/raditc/interview/helpers/CasePolling.java) (Bounded polling), [`src/test/java/io/raditc/interview/support`](https://github.com/ericksontest/case-api/tree/main/src/test/java/io/raditc/interview/support) (Fictional case API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tests["API tests"]
  node_case_tests["Case scenarios<br/>[CreateCaseIT.java]"]
  node_polling["Bounded polling<br/>[CasePolling.java]"]
end

subgraph group_fixture["Local API fixture"]
  node_local_api["Fictional case API"]
end

node_runner(("JUnit test execution"))

node_runner -->|"runs tests"| node_case_tests
node_case_tests -->|"starts and tests"| node_local_api
node_case_tests -->|"uses polling"| node_polling
node_polling -->|"retrieves cases"| node_local_api

click node_case_tests "https://github.com/ericksontest/case-api/blob/main/src/test/java/io/raditc/interview/CreateCaseIT.java"
click node_polling "https://github.com/ericksontest/case-api/blob/main/src/test/java/io/raditc/interview/helpers/CasePolling.java"
click node_local_api "https://github.com/ericksontest/case-api/tree/main/src/test/java/io/raditc/interview/support"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_case_tests,node_polling toneBlue
class node_local_api toneAmber
class node_runner toneIndigo
```

## Components

### API tests

- [Case scenarios](https://github.com/ericksontest/case-api/blob/main/src/test/java/io/raditc/interview/CreateCaseIT.java): `src/test/java/io/raditc/interview/CreateCaseIT.java`
- [Bounded polling](https://github.com/ericksontest/case-api/blob/main/src/test/java/io/raditc/interview/helpers/CasePolling.java): `src/test/java/io/raditc/interview/helpers/CasePolling.java`

### Local API fixture

- [Fictional case API](https://github.com/ericksontest/case-api/tree/main/src/test/java/io/raditc/interview/support): `src/test/java/io/raditc/interview/support`

### Other components

- **JUnit test execution**

## Connections

- JUnit test execution → Case scenarios: runs tests (evidence: `README.md`)
- Case scenarios → Fictional case API: starts and tests (evidence: `README.md`)
- Case scenarios → Bounded polling: uses polling (evidence: `README.md`)
- Bounded polling → Fictional case API: retrieves cases (evidence: `README.md`)
