void function ( ) { Configuration loc0 = new Configuration ( ) ; loc0 . setInt ( SshFenceByTcpPort . CONF_CONNECT_TIMEOUT_KEY , 3000 ) ; SshFenceByTcpPort loc1 = new SshFenceByTcpPort ( ) ; loc1 . setConf ( loc0 ) ; assertFalse ( loc1 . tryFence ( UNFENCEABLE_TARGET , "srini_string" ) ) ; }
test connecting to a host which definitely wo n't respond . make sure that it times out and returns false , but does n't throw any exception concode_field_sep String TEST_KEYFILE concode_elem_sep String TEST_FENCING_PORT concode_elem_sep InetSocketAddress TEST_ADDR concode_elem_sep HAServiceTarget UNFENCEABLE_TARGET concode_elem_sep HAServiceTarget TEST_TARGET concode_elem_sep String TEST_FENCING_HOST concode_field_sep void assertBadArgs concode_elem_sep boolean isConfigured concode_elem_sep void testArgsParsing concode_elem_sep void testBadArgsParsing concode_elem_sep void testFence