Class TestConnection
java.lang.Object
br.com.pethub.jdbc.TestConnection
This class is used to test the database connection.
It creates a new instance of the ConnectionFactory class and attempts to establish a connection.
If the connection is successful, a success message is displayed.
If an error occurs during the connection process, the error message is displayed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TestConnection
public TestConnection()
-
-
Method Details
-
main
The main method of the TestConnection class. It is the entry point for the application.- Parameters:
args
- An array of command-line arguments for the application.
-