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

Public Member Functions

 RTObjectTests ()
 Constructor. More...
 
virtual void setUp ()
 Test initialization. More...
 
virtual void tearDown ()
 Test finalization. More...
 
void test_add_removePort ()
 add[In/Out]Port(),addPort()メソッドのテスト More...
 
void test_bindContext ()
 bindContext()メソッドのテスト More...
 
void test_detach_executioncontext ()
 detach_executioncontext()メソッドのテスト More...
 
void test_detach_executioncontext_with_illegal_id ()
 detach_executioncontext()メソッドのテスト More...
 
void test_exit ()
 exit()メソッドのテスト More...
 
void test_exit_in_Created ()
 exit()メソッドのテスト More...
 
void test_finalize_in_Created ()
 finalize()メソッドのテスト More...
 
void test_finalize_invoking_on_finalize ()
 finalize()メソッドのテスト More...
 
void test_finalize_participating_in_execution_context ()
 finalize()メソッドのテスト More...
 
void test_finalizeContexts ()
 finalizeContexts()メソッドのテスト More...
 
void test_get_component_profile ()
 get_component_profile()メソッドのテスト More...
 
void test_get_configuration_and_add_organization_and_get_organizations ()
 get_configuration()メソッドとget_organizations()メソッドのテスト More...
 
void test_get_configuration_and_remove_organization ()
 Configuration::remove_organization()メソッドのテスト More...
 
void test_get_configuration_and_remove_service_profile ()
 Configuration::remove_service_profile()メソッドのテスト More...
 
void test_get_configuration_and_set_device_profile_and_get_device_profile ()
 get_configuration()メソッドのテスト More...
 
void test_get_configuration_and_set_service_profile_and_get_sdo_service ()
 get_configuration()メソッドとget_sdo_service()メソッドのテスト More...
 
void test_get_configuration_and_set_service_profile_and_get_service_profile ()
 get_configuration()メソッドとget_serivce_profile()メソッドのテスト More...
 
void test_get_configuration_and_set_service_profile_and_get_service_profiles ()
 get_configuration()メソッドとget_service_profiles()メソッドのテスト More...
 
void test_get_context ()
 get_context()メソッドのテスト More...
 
void test_get_contexts ()
 get_contexts()メソッドのテスト More...
 
void test_get_device_profile ()
 get_device_profile()メソッドのテスト More...
 
void test_get_monitoring ()
 get_monitoring()メソッドのテスト More...
 
void test_get_owned_organizations ()
 get_execution_context_services()メソッドのテスト More...
 
void test_get_ports ()
 get_ports()メソッドのテスト More...
 
void test_get_sdo_id ()
 get_sdo_id()メソッドのテスト More...
 
void test_get_sdo_service ()
 get_sdo_service()メソッドのテスト More...
 
void test_get_sdo_service_with_illegal_arguments ()
 
void test_get_sdo_type ()
 get_sdo_type()メソッドのテスト More...
 
void test_get_service_profile ()
 get_service_profile()メソッドのテスト More...
 
void test_get_service_profile_with_illegal_arguments ()
 get_service_profile()メソッドのテスト More...
 
void test_get_status ()
 get_status()メソッドのテスト More...
 
void test_get_status_list ()
 get_status_list()メソッドのテスト More...
 
void test_initialize_in_Alive ()
 initialize()メソッドのテスト More...
 
void test_initialize_invoking_on_initialize ()
 initialize()メソッドのテスト More...
 
void test_is_alive ()
 is_alive()メソッドのテスト More...
 
void test_readAll ()
 readAll(),setReadAll()メソッドのテスト More...
 
void test_writeAll ()
 writeAll(),setWriteAll()メソッドのテスト More...
 
virtual ~RTObjectTests ()
 Destructor. More...
 

Private Member Functions

 CPPUNIT_TEST (test_finalizeContexts)
 
 CPPUNIT_TEST (test_bindContext)
 
 CPPUNIT_TEST (test_add_removePort)
 
 CPPUNIT_TEST (test_readAll)
 
 CPPUNIT_TEST (test_writeAll)
 
 CPPUNIT_TEST (test_initialize_invoking_on_initialize)
 
 CPPUNIT_TEST (test_initialize_in_Alive)
 
 CPPUNIT_TEST (test_finalize_invoking_on_finalize)
 
 CPPUNIT_TEST (test_finalize_participating_in_execution_context)
 
 CPPUNIT_TEST (test_finalize_in_Created)
 
 CPPUNIT_TEST (test_exit)
 
 CPPUNIT_TEST (test_exit_in_Created)
 
 CPPUNIT_TEST (test_detach_executioncontext)
 
 CPPUNIT_TEST (test_detach_executioncontext_with_illegal_id)
 
 CPPUNIT_TEST (test_get_context)
 
 CPPUNIT_TEST (test_get_contexts)
 
 CPPUNIT_TEST (test_get_component_profile)
 
 CPPUNIT_TEST (test_get_ports)
 
 CPPUNIT_TEST (test_get_sdo_id)
 
 CPPUNIT_TEST (test_get_sdo_type)
 
 CPPUNIT_TEST (test_get_service_profile_with_illegal_arguments)
 
 CPPUNIT_TEST (test_get_sdo_service)
 
 CPPUNIT_TEST (test_get_sdo_service_with_illegal_arguments)
 
 CPPUNIT_TEST (test_get_configuration_and_set_device_profile_and_get_device_profile)
 
 CPPUNIT_TEST (test_get_configuration_and_set_service_profile_and_get_service_profile)
 
 CPPUNIT_TEST (test_get_configuration_and_set_service_profile_and_get_service_profiles)
 
 CPPUNIT_TEST (test_get_configuration_and_set_service_profile_and_get_sdo_service)
 
 CPPUNIT_TEST (test_get_configuration_and_remove_service_profile)
 
 CPPUNIT_TEST (test_get_configuration_and_add_organization_and_get_organizations)
 
 CPPUNIT_TEST (test_get_configuration_and_remove_organization)
 
 CPPUNIT_TEST (test_get_status)
 
 CPPUNIT_TEST (test_get_status_list)
 
 CPPUNIT_TEST_SUITE (RTObjectTests)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

CORBA::ORB_ptr m_pORB
 
PortableServer::POA_ptr m_pPOA
 

Detailed Description

Definition at line 367 of file RTObjectTests.cpp.

Constructor & Destructor Documentation

RTObject::RTObjectTests::RTObjectTests ( )
inline

Constructor.

Definition at line 421 of file RTObjectTests.cpp.

virtual RTObject::RTObjectTests::~RTObjectTests ( )
inlinevirtual

Destructor.

Definition at line 434 of file RTObjectTests.cpp.

Member Function Documentation

RTObject::RTObjectTests::CPPUNIT_TEST ( test_finalizeContexts  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_bindContext  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_add_removePort  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_readAll  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_writeAll  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_initialize_invoking_on_initialize  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_initialize_in_Alive  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_finalize_invoking_on_finalize  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_finalize_participating_in_execution_context  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_finalize_in_Created  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_exit  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_exit_in_Created  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_detach_executioncontext  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_detach_executioncontext_with_illegal_id  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_context  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_contexts  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_component_profile  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_ports  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_sdo_id  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_sdo_type  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_service_profile_with_illegal_arguments  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_sdo_service  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_sdo_service_with_illegal_arguments  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_configuration_and_set_device_profile_and_get_device_profile  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_configuration_and_set_service_profile_and_get_service_profile  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_configuration_and_set_service_profile_and_get_service_profiles  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_configuration_and_set_service_profile_and_get_sdo_service  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_configuration_and_remove_service_profile  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_configuration_and_add_organization_and_get_organizations  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_configuration_and_remove_organization  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_status  )
private
RTObject::RTObjectTests::CPPUNIT_TEST ( test_get_status_list  )
private
RTObject::RTObjectTests::CPPUNIT_TEST_SUITE ( RTObjectTests  )
private
RTObject::RTObjectTests::CPPUNIT_TEST_SUITE_END ( )
private
virtual void RTObject::RTObjectTests::setUp ( )
inlinevirtual

Test initialization.

Definition at line 441 of file RTObjectTests.cpp.

virtual void RTObject::RTObjectTests::tearDown ( )
inlinevirtual

Test finalization.

Definition at line 448 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_add_removePort ( )
inline

add[In/Out]Port(),addPort()メソッドのテスト

  • Portを正しく登録できるか?
  • 既に登録済みのポートと同じポート名のPortを登録しようとした場合に失敗するか?
  • 登録済みのPortを正しく削除できるか?

Definition at line 815 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_bindContext ( )
inline

bindContext()メソッドのテスト

  • ExecutionContextを正しく設定できるか?

Definition at line 1786 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_detach_executioncontext ( )
inline

detach_executioncontext()メソッドのテスト

  • attach済みのRTCを正常にdetachできるか?

Definition at line 648 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_detach_executioncontext_with_illegal_id ( )
inline

detach_executioncontext()メソッドのテスト

  • 存在しないIDでRTCのdetachを試みた場合、意図どおりのエラーを返すか?

Definition at line 673 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_exit ( )
inline

exit()メソッドのテスト

  • exit()呼出しにより、当該コンポーネントがfinalize()されるか?
  • exit()呼出しにより、当該コンポーネントが終状態に遷移するか?

Definition at line 588 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_exit_in_Created ( )
inline

exit()メソッドのテスト

  • Create状態でexit()を呼出した場合、意図どおりのエラーを返すか?

Definition at line 631 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_finalize_in_Created ( )
inline

finalize()メソッドのテスト

  • Created状態でfinalize()を呼出した場合、意図どおりのエラーで返るか?

Definition at line 564 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_finalize_invoking_on_finalize ( )
inline

finalize()メソッドのテスト

  • finalize()呼出により、on_finalize()コールバックが呼び出されるか?

Definition at line 504 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_finalize_participating_in_execution_context ( )
inline

finalize()メソッドのテスト

  • ExecutionContextに登録された状態でfinalize()を呼び出した場合、意図どおりのエラーを返すか?

Definition at line 533 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_finalizeContexts ( )
inline

finalizeContexts()メソッドのテスト

  • 全コンテキストの登録を削除できるか?

Definition at line 1755 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_component_profile ( )
inline

get_component_profile()メソッドのテスト

  • ComponentProfileを正しく取得できるか?

Definition at line 773 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_configuration_and_add_organization_and_get_organizations ( )
inline

get_configuration()メソッドとget_organizations()メソッドのテスト

  • Configuration::add_organization()でOrganizationを正しく追加できるか?
  • get_organizations()で、登録されているOrganizationを正しく取得できるか?

Definition at line 1592 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_configuration_and_remove_organization ( )
inline

Configuration::remove_organization()メソッドのテスト

  • 指定したIDのOrganizationを正しく削除できるか?

Definition at line 1635 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_configuration_and_remove_service_profile ( )
inline

Configuration::remove_service_profile()メソッドのテスト

  • 指定したIDのServiceProfileを正しく削除できるか?

Definition at line 1534 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_configuration_and_set_device_profile_and_get_device_profile ( )
inline

get_configuration()メソッドのテスト

  • Configuration::set_device_profile()を通して、DeviceProfileを正しく設定できるか?
  • 設定されたDeviceProfileを、get_device_profile()で正しく取得できるか?

Definition at line 1280 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_configuration_and_set_service_profile_and_get_sdo_service ( )
inline

get_configuration()メソッドとget_sdo_service()メソッドのテスト

  • Configuration::set_service_profile()を通して、SDOServiceを正しく設定できるか?
  • get_sdo_service()を用いて、設定されているSDPServiceを正しく取得できるか?

Definition at line 1479 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_configuration_and_set_service_profile_and_get_service_profile ( )
inline

get_configuration()メソッドとget_serivce_profile()メソッドのテスト

  • Configuration::set_service_profile()を通して、ServiceProfileを正しく設定できるか?
  • 設定されたServiceProfileを、get_service_profile()で正しく取得できるか?

Definition at line 1325 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_configuration_and_set_service_profile_and_get_service_profiles ( )
inline

get_configuration()メソッドとget_service_profiles()メソッドのテスト

  • 設定されたServiceProfileを、get_service_profiles()で正しく取得できるか?

Definition at line 1397 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_context ( )
inline

get_context()メソッドのテスト

  • 指定したIDのExecutionContextを正しく取得できるか?

Definition at line 689 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_contexts ( )
inline

get_contexts()メソッドのテスト

  • attachされているExecutionContextをすべて正しく取得できるか?

Definition at line 729 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_device_profile ( )
inline

get_device_profile()メソッドのテスト

  • DeviceProfileを正しく取得できるか?

Definition at line 1164 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_monitoring ( )
inline

get_monitoring()メソッドのテスト

Definition at line 1672 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_owned_organizations ( )
inline

get_execution_context_services()メソッドのテスト

  • ExecutionContextServiceをすべて正しく取得できるか?

Definition at line 1097 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_ports ( )
inline

get_ports()メソッドのテスト

  • 登録したPort参照をすべて正しく取得できるか?

Definition at line 1030 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_sdo_id ( )
inline

get_sdo_id()メソッドのテスト

  • SDO IDを取得できるか?
  • 取得されたSDO IDは一意か?

Definition at line 1108 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_sdo_service ( )
inline

get_sdo_service()メソッドのテスト

  • 指定したIDのSDOServiceを正しく取得できるか?

Definition at line 1229 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_sdo_service_with_illegal_arguments ( )
inline

Definition at line 1234 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_sdo_type ( )
inline

get_sdo_type()メソッドのテスト

  • SDOタイプを取得できるか?

Definition at line 1142 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_service_profile ( )
inline

get_service_profile()メソッドのテスト

  • 指定したIDのServiceProfileを正しく取得できるか?

Definition at line 1174 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_service_profile_with_illegal_arguments ( )
inline

get_service_profile()メソッドのテスト

  • 引数にNULLを指定した場合、意図どおりの例外がスローされるか?
  • 引数に存在しないIDを指定した場合、意図どおりの例外がスローされるか?

Definition at line 1185 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_status ( )
inline

get_status()メソッドのテスト

  • 指定した名称のstatus値を正しく取得できるか?

Definition at line 1682 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_get_status_list ( )
inline

get_status_list()メソッドのテスト

  • 設定されているすべてのstatusを正しく取得できるか?

Definition at line 1718 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_initialize_in_Alive ( )
inline

initialize()メソッドのテスト

  • Alive状態の時にinitialize()メソッドを呼出た場合、正常に動作するか?

Definition at line 478 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_initialize_invoking_on_initialize ( )
inline

initialize()メソッドのテスト

  • initialize()メソッド呼出により、on_initialize()コールバックが呼び出されるか?

Definition at line 457 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_is_alive ( )
inline

is_alive()メソッドのテスト

Definition at line 577 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_readAll ( )
inline

readAll(),setReadAll()メソッドのテスト

  • readAll()で全てのInPortのread()がコールされるか?
  • setReadAll()で全てのInPortのread()がコールされるか?
  • setReadAll()が正しく機能しているか?

Definition at line 882 of file RTObjectTests.cpp.

void RTObject::RTObjectTests::test_writeAll ( )
inline

writeAll(),setWriteAll()メソッドのテスト

  • setWriteAll()で全てのOutPortのwrite()がコールされるか?
  • writeAll()で全てのOutPortのwrite()がコールされるか?
  • setWriteAll()が正しく機能しているか?

Definition at line 957 of file RTObjectTests.cpp.

Member Data Documentation

CORBA::ORB_ptr RTObject::RTObjectTests::m_pORB
private

Definition at line 414 of file RTObjectTests.cpp.

PortableServer::POA_ptr RTObject::RTObjectTests::m_pPOA
private

Definition at line 415 of file RTObjectTests.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:05