Class: StubTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
Stub
Defined in:
lib/common/socket/stub.rb

Instance Method Summary collapse

Methods included from Stub

#set_stub_action, #set_stub_file, #set_stub_head, #start_stub, #stop_stub

Methods included from Env

#bak_conf, #copy_conf, #get_conf, #get_thread_num, #is_process_running?, #kill_process, #modify_conf, #modify_conf_single, #recover_conf, #start_process

Instance Method Details

#no_test_arr_to_sObject



264
265
266
# File 'lib/common/socket/stub.rb', line 264

def no_test_arr_to_s
	puts arr_to_s ["stub1", "stub2"]
end

#no_test_get_idx_by_nameObject



268
269
270
271
272
273
274
# File 'lib/common/socket/stub.rb', line 268

def no_test_get_idx_by_name
	puts get_idx_by_name "stub2", ['stub1', 'stub2', 'stub3']
	puts get_idx_by_name "stub4", ['stub1', 'stub2', 'stub3']
	puts get_idx_by_name "stub2", []
	puts get_idx_by_name "stub2", nil
	
end

#no_test_start_stubObject



260
261
262
# File 'lib/common/socket/stub.rb', line 260

def no_test_start_stub
	start_stub 'stub1'=>11111, 'stub2'=>22222
end