- demonstrates layer architecture
- demonstrates different test strategies
- static factory methods for creating objects
- enforcing noninstantiability
- builder/assembler pattern
- minimizing mutability
- Java 16
- Maven 3.6.0
- Windows GitBash
- Download chromedriver matching your current chrome browser version.
- Verify chromedriver
cd ./src/test/java/test/pyramid/strategy/presentation/frontend/automatization/resources/
chmod 777 ./chromedriver
xattr -d com.apple.quarantine chromedriver
- mvn clean install
- runAllTestsWindows.sh (set correct JAVA_HOME inside script)
- runRatpackServiceWindows.sh (set correct JAVA_HOME inside script)
- runRatpackServiceLinux.sh
- http://localhost:5050
- runSpringBootServiceWindows.sh (set correct JAVA_HOME inside script)
- runSpringBootServiceLinux.sh
- http://localhost:8085
- regular
- manager
- vp
- contractor
- curl --request POST
--url <SERVICE_URL:PORT>/employee
--header 'content-type: application/json'
--data '{ "id": <EMPLOYEE_ID>, "type": "<EMPLOYEE_TYPE>", "salary": }'
- curl --request POST
--url http://localhost:5050/employee
--header 'content-type: application/json'
--data '{ "id": 1, "type": "regular", "salary": 1000 }'
- curl --request GET
--url <SERVICE_URL:PORT>/employee/<EMPLOYEE_ID>
- curl --request GET
--url http://localhost:5050/employee/1
- curl --request PUT
--url <SERVICE_URL:PORT>/employee/<EMPLOYEE_ID>/salary
curl --request PUT
--url http://localhost:5050/employee/1/salary