ValidityTools { public static boolean isInt ( String value ) { try { Integer.parseInt( value.trim( ) ); return true; } catch ( Exception exception ) { return false; } }  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 testIsInt() { }