Class TestConnection

java.lang.Object
br.com.pethub.jdbc.TestConnection

public class TestConnection extends Object
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 Details

    • TestConnection

      public TestConnection()
  • Method Details

    • main

      public static void main(String[] args)
      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.