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

Public Member Functions

 PortBaseTests ()
 Constructor. More...
 
virtual void setUp ()
 初期化 (1) ORBの初期化,POAのactivate (2) PortBaseのインスタンス生成 (3) PortInterfaceProfileオブジェクト要素のセット (4) PortInterfaceProfileListオブジェクト要素 (PortProfileの要素)のセット (5) ConnectorProfileオブジェクト要素のセット (6) ConnectorProfileListオブジェクト要素(PortProfileの要素)のセット (7) PortProfileオブジェクト要素のセット (8) PortProfileオブジェクトのセット More...
 
virtual void tearDown ()
 Test finalization. More...
 
void test_connect ()
 connect()メソッドのテスト More...
 
void test_disconnect ()
 disconnect()メソッドのテスト More...
 
void test_disconnect_all ()
 
void test_get_connector_profile ()
 get_connector_profile()メソッドのテスト More...
 
void test_get_connector_profiles ()
 get_connector_profiles()メソッドのテスト More...
 
void test_get_port_profile ()
 get_port_profile()メソッドのテスト More...
 
void test_getPortProfile ()
 getPortProfile()メソッドのテスト More...
 
void test_getPortRef ()
 getPortRef()メソッドのテスト More...
 
void test_getProfile ()
 getProfile()メソッドのテスト More...
 
void test_getUUID ()
 getUUID()メソッドのテスト More...
 
void test_notify_connect ()
 notify_connect()メソッドのテスト More...
 
void test_setName ()
 setName()メソッドのテスト More...
 
void test_setOwner ()
 setOwner()メソッドのテスト More...
 
void test_setPortRef ()
 setPortRef()メソッドのテスト More...
 
 ~PortBaseTests ()
 Destructor. More...
 

Public Attributes

ConnectionCallbackMockm_on_connected
 
ConnectionCallbackMockm_on_connection_lost
 
ConnectionCallbackMockm_on_disconnected
 
ConnectionCallbackMockm_on_publish
 
ConnectionCallbackMockm_on_subscribe
 
ConnectionCallbackMockm_on_unsubscribe
 

Private Member Functions

 CPPUNIT_TEST (test_get_port_profile)
 
 CPPUNIT_TEST (test_getPortProfile)
 
 CPPUNIT_TEST (test_get_connector_profiles)
 
 CPPUNIT_TEST (test_get_connector_profile)
 
 CPPUNIT_TEST (test_connect)
 
 CPPUNIT_TEST (test_notify_connect)
 
 CPPUNIT_TEST (test_disconnect)
 
 CPPUNIT_TEST (test_setName)
 
 CPPUNIT_TEST (test_getProfile)
 
 CPPUNIT_TEST (test_setPortRef)
 
 CPPUNIT_TEST (test_getPortRef)
 
 CPPUNIT_TEST (test_getUUID)
 
 CPPUNIT_TEST (test_disconnect_all)
 
 CPPUNIT_TEST (test_setOwner)
 
 CPPUNIT_TEST_SUITE (PortBaseTests)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

CORBA::ORB_ptr m_orb
 
RTC::PortBasem_pPortBase
 
RTC::PortBasem_pPortBase_2
 
RTC::PortBasem_pPortBase_3
 

Detailed Description

Definition at line 201 of file PortBaseTests.cpp.

Constructor & Destructor Documentation

◆ PortBaseTests()

PortBase::PortBaseTests::PortBaseTests ( )
inline

Constructor.

Definition at line 241 of file PortBaseTests.cpp.

◆ ~PortBaseTests()

PortBase::PortBaseTests::~PortBaseTests ( )
inline

Destructor.

Definition at line 248 of file PortBaseTests.cpp.

Member Function Documentation

◆ CPPUNIT_TEST() [1/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_get_port_profile  )
private

◆ CPPUNIT_TEST() [2/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_getPortProfile  )
private

◆ CPPUNIT_TEST() [3/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_get_connector_profiles  )
private

◆ CPPUNIT_TEST() [4/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_get_connector_profile  )
private

◆ CPPUNIT_TEST() [5/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_connect  )
private

◆ CPPUNIT_TEST() [6/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_notify_connect  )
private

◆ CPPUNIT_TEST() [7/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_disconnect  )
private

◆ CPPUNIT_TEST() [8/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_setName  )
private

◆ CPPUNIT_TEST() [9/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_getProfile  )
private

◆ CPPUNIT_TEST() [10/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_setPortRef  )
private

◆ CPPUNIT_TEST() [11/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_getPortRef  )
private

◆ CPPUNIT_TEST() [12/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_getUUID  )
private

◆ CPPUNIT_TEST() [13/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_disconnect_all  )
private

◆ CPPUNIT_TEST() [14/14]

PortBase::PortBaseTests::CPPUNIT_TEST ( test_setOwner  )
private

◆ CPPUNIT_TEST_SUITE()

PortBase::PortBaseTests::CPPUNIT_TEST_SUITE ( PortBaseTests  )
private

◆ CPPUNIT_TEST_SUITE_END()

PortBase::PortBaseTests::CPPUNIT_TEST_SUITE_END ( )
private

◆ setUp()

virtual void PortBase::PortBaseTests::setUp ( )
inlinevirtual

初期化 (1) ORBの初期化,POAのactivate (2) PortBaseのインスタンス生成 (3) PortInterfaceProfileオブジェクト要素のセット (4) PortInterfaceProfileListオブジェクト要素 (PortProfileの要素)のセット (5) ConnectorProfileオブジェクト要素のセット (6) ConnectorProfileListオブジェクト要素(PortProfileの要素)のセット (7) PortProfileオブジェクト要素のセット (8) PortProfileオブジェクトのセット

Definition at line 264 of file PortBaseTests.cpp.

◆ tearDown()

virtual void PortBase::PortBaseTests::tearDown ( )
inlinevirtual

Test finalization.

Definition at line 346 of file PortBaseTests.cpp.

◆ test_connect()

void PortBase::PortBaseTests::test_connect ( )
inline

connect()メソッドのテスト

  • オブジェクト参照経由で、connect()に正しくアクセスできるか?
  • 接続が成功するか?
  • 接続時にnotify_connect()が意図どおりに1回だけ呼び出されたか?

Definition at line 596 of file PortBaseTests.cpp.

◆ test_disconnect()

void PortBase::PortBaseTests::test_disconnect ( )
inline

disconnect()メソッドのテスト

  • オブジェクト参照経由で、disconnect()に正しくアクセスできるか?
  • 切断が成功するか?
  • 切断時にnotify_disconnect()が、意図どおり1回だけ呼び出されているか?

Definition at line 634 of file PortBaseTests.cpp.

◆ test_disconnect_all()

void PortBase::PortBaseTests::test_disconnect_all ( )
inline

Definition at line 660 of file PortBaseTests.cpp.

◆ test_get_connector_profile()

void PortBase::PortBaseTests::test_get_connector_profile ( )
inline

get_connector_profile()メソッドのテスト

  • オブジェクト参照経由で、get_connector_profile()に正しくアクセスできるか?
  • ConnectorProfile.nameを正しく取得できるか?
  • ConnectorProfile.connector_idを正しく取得できるか?
  • ConnectorProfile.propertiesを正しく取得できるか?

Definition at line 556 of file PortBaseTests.cpp.

◆ test_get_connector_profiles()

void PortBase::PortBaseTests::test_get_connector_profiles ( )
inline

get_connector_profiles()メソッドのテスト

  • オブジェクト参照経由で、get_connector_profiles()に正しくアクセスできるか?
  • ConnectorProfile.nameを正しく取得できるか?
  • ConnectorProfile.connector_idを正しく取得できるか?
  • ConnectorProfile.propertiesを正しく取得できるか?

Definition at line 513 of file PortBaseTests.cpp.

◆ test_get_port_profile()

void PortBase::PortBaseTests::test_get_port_profile ( )
inline

get_port_profile()メソッドのテスト

  • オブジェクト参照経由で、get_port_profile()に正しくアクセスできるか?
  • PortProfile.nameを正しく取得できるか?
  • PortProfile.interfaceを正しく取得できるか?
  • PortProfile.connector_profilesを正しく取得できるか?
  • PortProfile.propertiesを正しく取得できるか?

Definition at line 375 of file PortBaseTests.cpp.

◆ test_getPortProfile()

void PortBase::PortBaseTests::test_getPortProfile ( )
inline

getPortProfile()メソッドのテスト

  • PortProfile.nameを正しく取得できるか?
  • PortProfile.interfaceを正しく取得できるか?
  • PortProfile.connector_profilesを正しく取得できるか?
  • PortProfile.propertiesを正しく取得できるか?

Definition at line 446 of file PortBaseTests.cpp.

◆ test_getPortRef()

void PortBase::PortBaseTests::test_getPortRef ( )
inline

getPortRef()メソッドのテスト

Definition at line 818 of file PortBaseTests.cpp.

◆ test_getProfile()

void PortBase::PortBaseTests::test_getProfile ( )
inline

getProfile()メソッドのテスト

  • PortProfile.nameを正しく取得できるか?
  • PortProfile.interfacesを正しく取得できるか?
  • PortProfile.connector_profilesを正しく取得できるか?
  • PortProfile.propertiesを正しく取得できるか?

Definition at line 728 of file PortBaseTests.cpp.

◆ test_getUUID()

void PortBase::PortBaseTests::test_getUUID ( )
inline

getUUID()メソッドのテスト

  • UUIDを取得できるか?(空文字列でないかどうかのみでチェック)

Definition at line 828 of file PortBaseTests.cpp.

◆ test_notify_connect()

void PortBase::PortBaseTests::test_notify_connect ( )
inline

notify_connect()メソッドのテスト

Definition at line 622 of file PortBaseTests.cpp.

◆ test_setName()

void PortBase::PortBaseTests::test_setName ( )
inline

setName()メソッドのテスト

  • setName()により、意図どおりにPortProfile.nameが書き換えられているか?

Definition at line 706 of file PortBaseTests.cpp.

◆ test_setOwner()

void PortBase::PortBaseTests::test_setOwner ( )
inline

setOwner()メソッドのテスト

Definition at line 843 of file PortBaseTests.cpp.

◆ test_setPortRef()

void PortBase::PortBaseTests::test_setPortRef ( )
inline

setPortRef()メソッドのテスト

  • setPortRef()を用いて、PortBaseオブジェクト参照を正しく設定できるか?

Definition at line 800 of file PortBaseTests.cpp.

Member Data Documentation

◆ m_on_connected

ConnectionCallbackMock* PortBase::PortBaseTests::m_on_connected

Definition at line 233 of file PortBaseTests.cpp.

◆ m_on_connection_lost

ConnectionCallbackMock* PortBase::PortBaseTests::m_on_connection_lost

Definition at line 236 of file PortBaseTests.cpp.

◆ m_on_disconnected

ConnectionCallbackMock* PortBase::PortBaseTests::m_on_disconnected

Definition at line 235 of file PortBaseTests.cpp.

◆ m_on_publish

ConnectionCallbackMock* PortBase::PortBaseTests::m_on_publish

Definition at line 231 of file PortBaseTests.cpp.

◆ m_on_subscribe

ConnectionCallbackMock* PortBase::PortBaseTests::m_on_subscribe

Definition at line 232 of file PortBaseTests.cpp.

◆ m_on_unsubscribe

ConnectionCallbackMock* PortBase::PortBaseTests::m_on_unsubscribe

Definition at line 234 of file PortBaseTests.cpp.

◆ m_orb

CORBA::ORB_ptr PortBase::PortBaseTests::m_orb
private

Definition at line 225 of file PortBaseTests.cpp.

◆ m_pPortBase

RTC::PortBase* PortBase::PortBaseTests::m_pPortBase
private

Definition at line 226 of file PortBaseTests.cpp.

◆ m_pPortBase_2

RTC::PortBase* PortBase::PortBaseTests::m_pPortBase_2
private

Definition at line 227 of file PortBaseTests.cpp.

◆ m_pPortBase_3

RTC::PortBase* PortBase::PortBaseTests::m_pPortBase_3
private

Definition at line 228 of file PortBaseTests.cpp.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:47