Public Member Functions | Private Member Functions | Private Attributes | List of all members
PeriodicExecutionContext::PeriodicExecutionContextTests Class Reference
Inheritance diagram for PeriodicExecutionContext::PeriodicExecutionContextTests:
Inheritance graph
[legend]

Public Member Functions

 PeriodicExecutionContextTests ()
 Constructor. More...
 
virtual void setUp ()
 Test initialization. More...
 
virtual void tearDown ()
 Test finalization. More...
 
void test_activate_component_in_Error_state ()
 activate_component()メソッドのテスト More...
 
void test_activate_component_invoking_on_activated ()
 activate()メソッドのテスト More...
 
void test_activate_component_not_in_Alive_state ()
 activate_component()メソッドのテスト More...
 
void test_activate_component_without_participating ()
 
void test_add_invoking_attach_executioncontext ()
 add()メソッドのテスト More...
 
void test_add_not_with_data_flow_component ()
 add()メソッドのテスト More...
 
void test_bindComponent ()
 bindComponent()メソッドのテスト More...
 
void test_deactivate_component_invoking_on_deactivated ()
 deactivate_component()メソッドのテスト More...
 
void test_deactivate_component_not_in_Alive_state ()
 deactivate_component()メソッドのテスト More...
 
void test_deactivate_component_without_participating ()
 deactivate_component()メソッドのテスト More...
 
void test_is_running ()
 is_running()メソッドのテスト More...
 
void test_remove_invoking_detach_executioncontext ()
 remove()メソッドのテスト More...
 
void test_remove_when_component_is_inactive ()
 remove()メソッドのテスト More...
 
void test_remove_when_component_is_still_active ()
 remove()メソッドのテスト More...
 
void test_remove_with_not_attached_component ()
 remove()メソッドのテスト More...
 
void test_reset_component_invoking_on_reset ()
 reset_component()メソッドのテスト More...
 
void test_reset_component_not_in_Alive_state ()
 reset_component()メソッドのテスト More...
 
void test_reset_component_not_in_Error_state ()
 reset_component()メソッドのテスト More...
 
void test_set_rate_and_get_rate ()
 set_rate()メソッドとget_rate()メソッドのテスト More...
 
void test_set_rate_invoking_on_rate_changed ()
 
void test_set_rate_with_zero_or_negative_rate ()
 set_rate()メソッドのテスト More...
 
void test_start_and_stop_multiple_times ()
 start()メソッドとstop()メソッドのテスト More...
 
void test_start_invoking_on_startup ()
 start()メソッドのテスト More...
 
void test_start_with_not_alive ()
 start()メソッドのテスト More...
 
void test_start_with_running ()
 start()メソッドのテスト More...
 
void test_stop_invoking_on_shutdown ()
 stop()メソッドのテスト More...
 
void test_stop_with_not_running ()
 stop()メソッドのテスト More...
 
virtual ~PeriodicExecutionContextTests ()
 Destructor. More...
 

Private Member Functions

 CPPUNIT_TEST (test_is_running)
 
 CPPUNIT_TEST (test_start_invoking_on_startup)
 
 CPPUNIT_TEST (test_start_with_running)
 
 CPPUNIT_TEST (test_start_with_not_alive)
 
 CPPUNIT_TEST (test_stop_invoking_on_shutdown)
 
 CPPUNIT_TEST (test_stop_with_not_running)
 
 CPPUNIT_TEST (test_start_and_stop_multiple_times)
 
 CPPUNIT_TEST (test_set_rate_and_get_rate)
 
 CPPUNIT_TEST (test_set_rate_with_zero_or_negative_rate)
 
 CPPUNIT_TEST (test_set_rate_invoking_on_rate_changed)
 
 CPPUNIT_TEST (test_add_invoking_attach_executioncontext)
 
 CPPUNIT_TEST (test_add_not_with_data_flow_component)
 
 CPPUNIT_TEST (test_remove_invoking_detach_executioncontext)
 
 CPPUNIT_TEST (test_remove_with_not_attached_component)
 
 CPPUNIT_TEST (test_remove_when_component_is_still_active)
 
 CPPUNIT_TEST (test_remove_when_component_is_inactive)
 
 CPPUNIT_TEST (test_activate_component_invoking_on_activated)
 
 CPPUNIT_TEST (test_activate_component_without_participating)
 
 CPPUNIT_TEST (test_activate_component_in_Error_state)
 
 CPPUNIT_TEST (test_activate_component_not_in_Alive_state)
 
 CPPUNIT_TEST (test_deactivate_component_invoking_on_deactivated)
 
 CPPUNIT_TEST (test_deactivate_component_without_participating)
 
 CPPUNIT_TEST (test_deactivate_component_not_in_Alive_state)
 
 CPPUNIT_TEST (test_reset_component_invoking_on_reset)
 
 CPPUNIT_TEST (test_reset_component_not_in_Error_state)
 
 CPPUNIT_TEST (test_reset_component_not_in_Alive_state)
 
 CPPUNIT_TEST (test_bindComponent)
 
 CPPUNIT_TEST_SUITE (PeriodicExecutionContextTests)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

CORBA::ORB_ptr m_pORB
 
PortableServer::POA_ptr m_pPOA
 

Detailed Description

Definition at line 355 of file PeriodicExecutionContextTests.cpp.

Constructor & Destructor Documentation

PeriodicExecutionContext::PeriodicExecutionContextTests::PeriodicExecutionContextTests ( )
inline

Constructor.

Definition at line 399 of file PeriodicExecutionContextTests.cpp.

virtual PeriodicExecutionContext::PeriodicExecutionContextTests::~PeriodicExecutionContextTests ( )
inlinevirtual

Destructor.

Definition at line 412 of file PeriodicExecutionContextTests.cpp.

Member Function Documentation

PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_is_running  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_start_invoking_on_startup  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_start_with_running  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_start_with_not_alive  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_stop_invoking_on_shutdown  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_stop_with_not_running  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_start_and_stop_multiple_times  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_set_rate_and_get_rate  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_set_rate_with_zero_or_negative_rate  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_set_rate_invoking_on_rate_changed  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_add_invoking_attach_executioncontext  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_add_not_with_data_flow_component  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_remove_invoking_detach_executioncontext  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_remove_with_not_attached_component  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_remove_when_component_is_still_active  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_remove_when_component_is_inactive  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_activate_component_invoking_on_activated  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_activate_component_without_participating  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_activate_component_in_Error_state  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_activate_component_not_in_Alive_state  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_deactivate_component_invoking_on_deactivated  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_deactivate_component_without_participating  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_deactivate_component_not_in_Alive_state  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_reset_component_invoking_on_reset  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_reset_component_not_in_Error_state  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_reset_component_not_in_Alive_state  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST ( test_bindComponent  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST_SUITE ( PeriodicExecutionContextTests  )
private
PeriodicExecutionContext::PeriodicExecutionContextTests::CPPUNIT_TEST_SUITE_END ( )
private
virtual void PeriodicExecutionContext::PeriodicExecutionContextTests::setUp ( )
inlinevirtual

Test initialization.

Definition at line 419 of file PeriodicExecutionContextTests.cpp.

virtual void PeriodicExecutionContext::PeriodicExecutionContextTests::tearDown ( )
inlinevirtual

Test finalization.

Definition at line 427 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_activate_component_in_Error_state ( )
inline

activate_component()メソッドのテスト

  • Error状態でactivate_component()呼出しを行い、意図どおりに失敗するか?

Definition at line 1006 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_activate_component_invoking_on_activated ( )
inline

activate()メソッドのテスト

  • activate()呼出しにより、コンポーネントのon_activated()が呼び出されるか?

Definition at line 936 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_activate_component_not_in_Alive_state ( )
inline

activate_component()メソッドのテスト

  • 非Alive状態のコンポーネントに対してactivate_component()呼出しを行い、意図どおりに失敗するか?

Definition at line 1041 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_activate_component_without_participating ( )
inline

activate()メソッドのテスト

  • ExecutionContextに未登録のコンポーネントに対してactivate()呼出しを行い、意図どおりに失敗するか?

Definition at line 979 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_add_invoking_attach_executioncontext ( )
inline

add()メソッドのテスト

  • add()メソッド呼出しにより、コンポーネントのattach_executioncontext()が呼び出されるか?

Definition at line 740 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_add_not_with_data_flow_component ( )
inline

add()メソッドのテスト

  • データフローコンポーネントではないLightweightRTObjectを指定してadd()メソッドを呼び出した場合、意図どおりに失敗するか?

Definition at line 773 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_bindComponent ( )
inline

bindComponent()メソッドのテスト

  • コンポーネントの参加者リストへ正しく登録されるか?

Definition at line 1292 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_deactivate_component_invoking_on_deactivated ( )
inline

deactivate_component()メソッドのテスト

  • deactivate_component()呼出しにより、コンポーネントのon_deactivated()が呼び出されるか?

Definition at line 1075 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_deactivate_component_not_in_Alive_state ( )
inline

deactivate_component()メソッドのテスト

  • 非Alive状態のコンポーネントに対してdeactivate_component()呼出しを行い、意図どおりに失敗するか?

Definition at line 1146 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_deactivate_component_without_participating ( )
inline

deactivate_component()メソッドのテスト

  • ExecutionContextに未登録のコンポーネントに対してdeactivate_component()を呼出し、意図どおりに失敗するか?

Definition at line 1119 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_is_running ( )
inline

is_running()メソッドのテスト

  • start()呼出前は、非running状態か?
  • start()呼出し後は、running状態か?
  • stop()呼出後は、非running状態か?

Definition at line 438 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_remove_invoking_detach_executioncontext ( )
inline

remove()メソッドのテスト

  • remove()呼出しにより、コンポーネントのdetach_executioncontext()が呼び出されるか?

Definition at line 801 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_remove_when_component_is_inactive ( )
inline

remove()メソッドのテスト

  • Inactive状態のコンポーネントに対して、正常にremove()できるか?

Definition at line 897 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_remove_when_component_is_still_active ( )
inline

remove()メソッドのテスト

  • Active状態のコンポーネントに対してremove()を試みた場合、意図どおりに失敗するか?

Definition at line 863 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_remove_with_not_attached_component ( )
inline

remove()メソッドのテスト

  • まだExecutionContextに登録していないコンポーネントについて登録解除を試みて、意図どおりに失敗するか?

Definition at line 837 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_reset_component_invoking_on_reset ( )
inline

reset_component()メソッドのテスト

  • reset_component()呼出しにより、コンポーネントのon_reset()が呼び出されるか?

Definition at line 1187 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_reset_component_not_in_Alive_state ( )
inline

reset_component()メソッドのテスト

  • 非Alive状態のコンポーネントに対してreset_component()呼出しを行い、意図どおりに失敗するか?

Definition at line 1258 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_reset_component_not_in_Error_state ( )
inline

reset_component()メソッドのテスト

  • 非Error状態のコンポーネントに対してreset_component()呼出しを行い、意図どおりに失敗するか?

Definition at line 1228 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_set_rate_and_get_rate ( )
inline

set_rate()メソッドとget_rate()メソッドのテスト

  • set_rate()で設定したレート値を、get_rate()で正しく取得できるか?

Definition at line 649 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_set_rate_invoking_on_rate_changed ( )
inline

set_rate()メソッドのテスト

  • set_rate()呼出しにより、コンポーネントのon_rate_changed()が呼び出されるか?

Definition at line 697 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_set_rate_with_zero_or_negative_rate ( )
inline

set_rate()メソッドのテスト

  • レート値に0を指定してset_rate()を呼び出した場合、意図どおりに失敗するか?
  • レート値に負値を指定してset_rate()を呼び出した場合、意図どおりに失敗するか?

Definition at line 674 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_start_and_stop_multiple_times ( )
inline

start()メソッドとstop()メソッドのテスト

  • start()とstop()を繰り返し連続で、正常に呼出しできるか?

Definition at line 624 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_start_invoking_on_startup ( )
inline

start()メソッドのテスト

  • start()メソッド呼出しにより、コンポーネントのon_startup()が呼び出されるか?

Definition at line 463 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_start_with_not_alive ( )
inline

start()メソッドのテスト

  • Alive状態にない場合にstart()メソッドを呼出して、意図どおりに失敗するか?

Definition at line 524 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_start_with_running ( )
inline

start()メソッドのテスト

  • すでにrunning状態の際、start()呼出が意図どおりに失敗するか?

Definition at line 499 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_stop_invoking_on_shutdown ( )
inline

stop()メソッドのテスト

  • stop()メソッド呼出しにより、コンポーネントのon_shutdown()が呼び出されるか?

Definition at line 555 of file PeriodicExecutionContextTests.cpp.

void PeriodicExecutionContext::PeriodicExecutionContextTests::test_stop_with_not_running ( )
inline

stop()メソッドのテスト

  • 非running状態でstop()メソッドを呼び出した場合、意図どおりに失敗するか?

Definition at line 593 of file PeriodicExecutionContextTests.cpp.

Member Data Documentation

CORBA::ORB_ptr PeriodicExecutionContext::PeriodicExecutionContextTests::m_pORB
private

Definition at line 391 of file PeriodicExecutionContextTests.cpp.

PortableServer::POA_ptr PeriodicExecutionContext::PeriodicExecutionContextTests::m_pPOA
private

Definition at line 392 of file PeriodicExecutionContextTests.cpp.


The documentation for this class was generated from the following file:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:02