ValidityTools { public static void isDBAccessible ( String driverClass , String url , String user , String password ) throws ClassNotFoundException , SQLException { Class.forName( driverClass ); Connection con = DriverManager.getConnection( url , user , password ); con.close( ); }  static boolean isAccessibleSocket( String host , int port ); static boolean isAccessibleSocket( String host , int port, int timeOutInMSec ); static void checkAccessibilityOfDirs( String ... args ); static void checkAccessibilityOfFiles( String... args ); static void isDBAccessible( String driverClass , String url , String user , String password ); static String getHostName( String hostandport ); static int getPortNumber( String hostandport ); static boolean isLocalhost( String host ); static boolean isInt( String value ); static boolean isValidJavaVariable(CharSequence string); static final int SMTP_PORT; static final transient Logger logger; static final ArrayList < InetAddress > NETWORK_LOCAL_INETADDRESSES; }
@Test public void testIsDBAccessible() { }