Application Architecture
╭┄┄┄┄┄┄┄╮ ┌──────────┐ ┌──────────┐
┆ ☁ ┆ ←→ │ ☕ │ ←→ │ 💾 │
┆ Web ┆ HTTP │ Spring │ │ Database │
╰┄┄┄┄┄┄┄╯ │ Service │ └──────────┘
└──────────┘
GET /hello
: Returns "Hello World!". Always.GET /hello/{lastname}
: Looks up the person withlastname
POST /orders
: Create order and return with theid
Test Layers
╱╲
End-to-End
╱────╲
╱ Inte-╲
╱ gration╲
╱──────────╲
╱ Unit ╲
──────────────
╭┄┄┄┄┄┄┄╮ ┌──────────┐ ┌──────────┐
┆ ☁ ┆ ←→ │ ☕ │ ←→ │ 💾 │
┆ Web ┆ │ Spring │ │ Database │
╰┄┄┄┄┄┄┄╯ │ Service │ └──────────┘
└──────────┘
│ Controller │ Repository │
└─── Integration ───┴──── Integration ─────┘
│ │
└────────────── End To End ────────────────┘
-
Given when then
-
create order POST {"product":{"price":60,"name":"mobile","id":"sdsadsds"}}
-
tools rest-assure archUnit mockito jacoco