note description: "[ Observer for events in {TEST_SUITE_S}. ]" date: "$Date$" revision: "$Revision$" class TEST_SUITE_OBSERVER inherit EVENT_OBSERVER_I feature {TEST_SUITE_S} -- Events on_test_added (a_test_suite: TEST_SUITE_S; a_test: TEST_I) -- Called when a test was added to the test suite. -- -- `a_test_suite': Test suite that triggered event. -- `a_test': Test added to `a_test_suite'. require a_test_suite_attached: a_test_suite /= Void a_test_attached: a_test /= Void a_test_suite_usable: a_test_suite.is_interface_usable a_test_usable: a_test.is_interface_usable a_test_suite_has_test: a_test_suite.has_test (a_test.name) and then a_test_suite.test (a_test.name) = a_test do end on_test_removed (a_test_suite: TEST_SUITE_S; a_test: TEST_I) -- Called when a test was removed from the test suite. -- -- `a_test_suite': Test suite that triggered event. -- `a_test': Test removed from `a_test_suite'. require a_test_suite_attached: a_test_suite /= Void a_test_attached: a_test /= Void a_test_suite_usable: a_test_suite.is_interface_usable a_test_usable: a_test.is_interface_usable a_test_suite_has_test: not a_test_suite.has_test (a_test.name) do end on_session_launched (a_test_suite: TEST_SUITE_S; a_session: TEST_SESSION_I) -- Called when test suite launches a session. -- -- `a_test_suite': Test suite that triggered event. -- `a_session': Session which was launched by test suite. require a_test_suite_attached: a_test_suite /= Void a_session_attached: a_session /= Void a_test_suite_usable: a_test_suite.is_interface_usable a_session_usable: a_session.is_interface_usable a_session_running: a_session.has_next_step a_session_added: a_test_suite.running_sessions.has (a_session) do ensure a_test_suite_usable: a_test_suite.is_interface_usable a_session_usable: a_session.is_interface_usable a_session_running: a_session.has_next_step a_session_added: a_test_suite.running_sessions.has (a_session) end on_session_finished (a_test_suite: TEST_SUITE_S; a_session: TEST_SESSION_I) -- Called when a session is finished. -- -- `a_test_suite': Test suite that triggered event. -- `a_session': Session which was launched by test suite and is finished now. require a_test_suite_attached: a_test_suite /= Void a_session_attached: a_session /= Void a_test_suite_usable: a_test_suite.is_interface_usable a_session_usable: a_session.is_interface_usable a_session_finished: not a_session.has_next_step do ensure a_session_usable: a_session.is_interface_usable a_session_not_launched: not a_session.has_next_step end note copyright: "Copyright (c) 1984-2009, 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