Whenever I run the package that inside the Lifecycle, it tell that "Failed to connect to database !!"
Here is an error image
Environment
Mac OS
JDK Version
JDK 17
Where are you seeing the problem on?
Console
Relevant log output
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.napier.gp3.CountryDAOIntegrationTest
Connecting to database...
Failed to connect to database attempt 0
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Connecting to database...
Failed to connect to database attempt 1
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Connecting to database...
Failed to connect to database attempt 2
Communications link failure
Code of Conduct
[X] I agree to follow this project's Code of Conduct
In this case, I have to run the database image first. Because whenever I package, the integration tests need database file to check the test. So running the database while processing the packaging in Maven
Contact Details
40685540@live.napier.ac.uk
What happened?
Whenever I run the package that inside the Lifecycle, it tell that "Failed to connect to database !!" Here is an error image
Environment
Mac OS
JDK Version
JDK 17
Where are you seeing the problem on?
Console
Relevant log output
Code of Conduct