class JOBSERVE_SEARCHER_TEST_SET
Test class JOBSERVE_SEARCHER
note
description: "Test class ${JOBSERVE_SEARCHER}"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2024-06-11 13:10:26 GMT (Tuesday 11th June 2024)"
revision: "11"
class
JOBSERVE_SEARCHER_TEST_SET
inherit
EL_COPIED_FILE_DATA_TEST_SET
SHARED_DEV_ENVIRON
create
make
feature {NONE} -- Initialization
make
-- initialize `test_table'
do
make_named (<<
["execute", agent test_execute]
>>)
end
feature -- Tests
test_execute
local
searcher: JOBSERVE_SEARCHER
do
if not file_list.is_empty then
create searcher.make (file_list.first_path, create {DIR_PATH}, "")
searcher.execute
assert_same_digest (Plain_text, searcher.results_path, "Fa3LI9hN1xM8e97BEq1IFQ==")
end
end
feature {NONE} -- Implementation
source_file_list: EL_FILE_PATH_LIST
do
create Result.make_from_array (<< Data_dir + "jobserve.xml" >>)
end
feature {NONE} -- Constants
Data_dir: DIR_PATH
once
Result := Dev_environ.EL_test_data_dir #+ "XML"
end
end