From 6c59b65ef1db0a3d236ca559fff3f53a51c842fc Mon Sep 17 00:00:00 2001 From: Bill Ho Date: Sun, 3 Nov 2024 01:56:52 +0800 Subject: [PATCH] docs: (1. fixed typo, (2. added an integration test case in README --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d19ed3..500ba1d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,20 @@ Project shows, how to use hexagonal architecture in your spring boot application * this project uses Testcontainers, so run Docker on your local machine ## Getting Started -`gradle testBootRun` +`gradle bootTestRun` + +### Test Case +``` +# Start Local Service +$ ./gradlew bootTestRun + +# Insert One Event Data via POST Locally +$ curl -d "id=1&name=test&description=test&from=local" -X POST http://localhost:8080/ + +# Get One Event Data via GET +$ curl http://localhost:8080/1 +{"eventPersistenceAdapter":{"id":"1","name":"test","description":"test","from":"local"},"redisCacheAdapter":{"id":"1","name":"test","description":"test","from":"local"}} +``` ## Project Structure ```