This project was created to start the initial steps with test automation for a REST API using RestAssured. It's a combination of the following projects to facilitate the test automation:
- Java JDK 23+
- you can change the
java.version
property in thepom.xml
file to17
as this project is not using any specific Java 23 feature
- you can change the
First, clone or download this project. After:
- Navigate to the project folder using the Terminal / Command prompt
- Execute the following:
./mvnw spring-boot:run
- Wait until you see something like this: Application has started! Happy tests!
The default port is 8088
.
If you want to change the port to another one, execute the following command, replacing the text <NEW_PORT>
.
Changing the port running the application using the jar file
java -jar credit-api-VERSION.jar --server-port=8089
Changing the port running the application using mvn
./mvnw spring-boot:run -Dspring-boot.run.arguments=--server.port=<NEW_PORT>
After the application has started open the link: http://localhost:8088/swagger-ui.html
Please read the Contribution guide