note description: "[ Implementation of a {TEST_RESULT_I} representing an unresolved outcome where tag and details are provided directly through strings. ]" author: "" date: "$Date$" revision: "$Revision$" class TEST_UNRESOLVED_RESULT inherit TEST_RESULT SHARED_LOCALE create make feature {NONE} -- Initialization make (a_tag, a_details, a_verbose_details: like tag; a_token_values: like token_values) -- Initialize `Current'. -- -- `a_tag': Tag describing state. -- `a_details': Detailed information about `Current' -- `a_token_values': Token values used for translation of `details' require a_tag_attached: a_tag /= Void a_details_attached: a_details /= Void a_verbose_details_attached: a_verbose_details /= Void do create start_date.make_now original_tag := a_tag.to_string_8 details := a_details.to_string_8 verbose_details := a_verbose_details.to_string_8 token_values := a_token_values end feature -- Access start_date: DATE_TIME -- finish_date: DATE_TIME -- do Result := start_date end tag: READABLE_STRING_32 -- -- -- Note: this is a translated version of `original_tag' which does not use `token_values'. do Result := locale.translation (original_tag) end feature {NONE} -- Access original_tag: STRING_8 -- Short tag describing the status of `Current' details: STRING_8 -- Detailed information about `Current' -- -- Note: before printing the tag will first be translated through `locale'. verbose_details: STRING_8 -- Verbose detailed information about `Current' -- -- Note: before printing the tag will first be translated through `locale'. token_values: TUPLE -- Token values used for translation of `details' feature -- Status report is_pass: BOOLEAN = False -- is_fail: BOOLEAN = False -- feature -- Basic operations print_details_indented (a_formatter: TEXT_FORMATTER; a_verbose: BOOLEAN; an_indent: NATURAL_32) -- local l_translation: STRING_32 do if a_verbose then l_translation := locale.formatted_string (verbose_details, token_values) else l_translation := locale.formatted_string (details, token_values) end print_multiline_string (l_translation, a_formatter, an_indent) a_formatter.add_new_line end note copyright: "Copyright (c) 1984-2012, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end