Bael 4781: Introduction to ZeroCode (#10482)

* small example of hexagonal architecture in java

* Bael-4781: Introduction to ZeroCode

* add readme

* Revert "small example of hexagonal architecture in java"

This reverts commit c0f96441

* refactoring

* refactoring
This commit is contained in:
Otto Dvalishvili
2021-02-26 08:00:21 +04:00
committed by GitHub
parent 91870ad48e
commit dc650c014c
8 changed files with 235 additions and 6 deletions
@@ -0,0 +1,39 @@
{
"scenarioName": "test user creation endpoint",
"steps": [
{
"name": "test_successful_creation",
"url": "/api/users",
"method": "POST",
"request": {
"body": {
"firstName": "John",
"lastName": "Doe"
}
},
"verify": {
"status": 201,
"body": {
"id": "$NOT.NULL",
"firstName": "John",
"lastName": "Doe"
}
}
},
{
"name": "test_firstname_validation",
"url": "/api/users",
"method": "POST",
"request": {
"body": {
"firstName": "",
"lastName": "Doe"
}
},
"assertions": {
"status": 400,
"rawBody": "firstName can't be empty!"
}
}
]
}
@@ -0,0 +1,3 @@
web.application.endpoint.host=http://localhost
web.application.endpoint.port=8080
web.application.endpoint.context=