Public Member Functions | Private Member Functions | List of all members
ConfigAdmin::ConfigAdminTests Class Reference
Inheritance diagram for ConfigAdmin::ConfigAdminTests:
Inheritance graph
[legend]

Public Member Functions

 ConfigAdminTests ()
 Constructor. More...
 
virtual void setUp ()
 Test initialization. More...
 
virtual void tearDown ()
 Test finalization. More...
 
void test_activateConfigurationSet ()
 
void test_addConfigurationSet_and_getConfigurationSet ()
 
void test_bindParameter ()
 bindParameter()メソッドのテスト More...
 
void test_bindParameter_already_exist ()
 bindParameter()メソッドのテスト More...
 
void test_bindParameter_illegal_default_value ()
 bindParameter()メソッドのテスト More...
 
void test_constructor ()
 コンストラクタのテスト More...
 
void test_getActiveConfigurationSet ()
 getActiveConfigurationSet()メソッドのテスト More...
 
void test_getActiveId ()
 getActiveId()メソッドのテスト More...
 
void test_getConfigurationSets ()
 getConfigurationSets()メソッドのテスト More...
 
void test_haveConfig ()
 haveConfig()メソッドのテスト More...
 
void test_isActive_on_activateConfigurationSet ()
 isActive()メソッドのテスト More...
 
void test_isActive_on_addConfigurationSet ()
 isActive()メソッドのテスト More...
 
void test_isActive_on_removeConfigurationSet ()
 isActive()メソッドのテスト More...
 
void test_isActive_on_setConfigurationSetValues ()
 
void test_isChanged_on_activateConfigurationSet ()
 isChanged()メソッドのテスト More...
 
void test_isChanged_on_addConfigurationSet ()
 isChanged()メソッドのテスト More...
 
void test_isChanged_on_removeConfigurationSet ()
 isChanged()メソッドのテスト More...
 
void test_isChanged_on_setConfigurationSetValues ()
 
void test_isExist ()
 isExist()メソッドのテスト More...
 
void test_removeConfigurationSet ()
 removeConfigurationSet()のテスト More...
 
void test_removeConfigurationSet_with_inexist_configuration_id ()
 removeConfigurationSet()のテスト More...
 
void test_setConfigurationSetValues ()
 
void test_setConfigurationSetValues_with_inexist_configuration_set ()
 setConfigurationSetValues()メソッドのテスト More...
 
void test_setOnActivateSet ()
 setOnActivateSet()メソッドのテスト More...
 
void test_setOnAddConfigurationSet ()
 setOnAddConfigurationSet()メソッドのテスト More...
 
void test_setOnRemoveConfigurationSet ()
 setOnRemoveConfigurationSet()メソッドのテスト More...
 
void test_setOnSetConfigurationSet ()
 setOnSetConfigurationSet()メソッドのテスト More...
 
void test_setOnUpdate ()
 setOnUpdate()メソッドのテスト More...
 
void test_setOnUpdateParam ()
 setOnUpdateParam()メソッドのテスト More...
 
void test_update ()
 update()メソッドのテスト More...
 
void test_update_by_active_configuration_set ()
 update()メソッド(アクティブコンフィグレーションセット)のテスト More...
 
void test_update_by_inexist_configuration_set ()
 update()メソッドのテスト More...
 
void test_update_with_specified_parameter_name ()
 update()メソッド(名称指定)のテスト More...
 
 ~ConfigAdminTests ()
 Destructor. More...
 

Private Member Functions

 CPPUNIT_TEST (test_setOnUpdate)
 
 CPPUNIT_TEST (test_setOnUpdateParam)
 
 CPPUNIT_TEST (test_setOnSetConfigurationSet)
 
 CPPUNIT_TEST (test_setOnAddConfigurationSet)
 
 CPPUNIT_TEST (test_setOnRemoveConfigurationSet)
 
 CPPUNIT_TEST (test_setOnActivateSet)
 
 CPPUNIT_TEST (test_constructor)
 
 CPPUNIT_TEST (test_bindParameter)
 
 CPPUNIT_TEST (test_bindParameter_already_exist)
 
 CPPUNIT_TEST (test_bindParameter_illegal_default_value)
 
 CPPUNIT_TEST (test_update)
 
 CPPUNIT_TEST (test_update_by_inexist_configuration_set)
 
 CPPUNIT_TEST (test_update_with_specified_parameter_name)
 
 CPPUNIT_TEST (test_update_by_active_configuration_set)
 
 CPPUNIT_TEST (test_isExist)
 
 CPPUNIT_TEST (test_isChanged_on_addConfigurationSet)
 
 CPPUNIT_TEST (test_isChanged_on_removeConfigurationSet)
 
 CPPUNIT_TEST (test_isChanged_on_activateConfigurationSet)
 
 CPPUNIT_TEST (test_getActiveId)
 
 CPPUNIT_TEST (test_haveConfig)
 
 CPPUNIT_TEST (test_isActive_on_addConfigurationSet)
 
 CPPUNIT_TEST (test_isActive_on_removeConfigurationSet)
 
 CPPUNIT_TEST (test_getConfigurationSets)
 
 CPPUNIT_TEST (test_addConfigurationSet_and_getConfigurationSet)
 
 CPPUNIT_TEST (test_setConfigurationSetValues)
 
 CPPUNIT_TEST (test_setConfigurationSetValues_with_inexist_configuration_set)
 
 CPPUNIT_TEST (test_getActiveConfigurationSet)
 
 CPPUNIT_TEST (test_removeConfigurationSet)
 
 CPPUNIT_TEST (test_removeConfigurationSet_with_inexist_configuration_id)
 
 CPPUNIT_TEST_SUITE (ConfigAdminTests)
 
 CPPUNIT_TEST_SUITE_END ()
 
const coil::PropertiesgetPropertiesBy (const std::string &name, const std::vector< coil::Properties *> &propertiesSet) const
 

Detailed Description

Definition at line 303 of file ConfigAdminTests.cpp.

Constructor & Destructor Documentation

◆ ConfigAdminTests()

ConfigAdmin::ConfigAdminTests::ConfigAdminTests ( )
inline

Constructor.

Definition at line 361 of file ConfigAdminTests.cpp.

◆ ~ConfigAdminTests()

ConfigAdmin::ConfigAdminTests::~ConfigAdminTests ( )
inline

Destructor.

Definition at line 368 of file ConfigAdminTests.cpp.

Member Function Documentation

◆ CPPUNIT_TEST() [1/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setOnUpdate  )
private

◆ CPPUNIT_TEST() [2/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setOnUpdateParam  )
private

◆ CPPUNIT_TEST() [3/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setOnSetConfigurationSet  )
private

◆ CPPUNIT_TEST() [4/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setOnAddConfigurationSet  )
private

◆ CPPUNIT_TEST() [5/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setOnRemoveConfigurationSet  )
private

◆ CPPUNIT_TEST() [6/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setOnActivateSet  )
private

◆ CPPUNIT_TEST() [7/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_constructor  )
private

◆ CPPUNIT_TEST() [8/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_bindParameter  )
private

◆ CPPUNIT_TEST() [9/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_bindParameter_already_exist  )
private

◆ CPPUNIT_TEST() [10/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_bindParameter_illegal_default_value  )
private

◆ CPPUNIT_TEST() [11/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_update  )
private

◆ CPPUNIT_TEST() [12/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_update_by_inexist_configuration_set  )
private

◆ CPPUNIT_TEST() [13/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_update_with_specified_parameter_name  )
private

◆ CPPUNIT_TEST() [14/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_update_by_active_configuration_set  )
private

◆ CPPUNIT_TEST() [15/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_isExist  )
private

◆ CPPUNIT_TEST() [16/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_isChanged_on_addConfigurationSet  )
private

◆ CPPUNIT_TEST() [17/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_isChanged_on_removeConfigurationSet  )
private

◆ CPPUNIT_TEST() [18/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_isChanged_on_activateConfigurationSet  )
private

◆ CPPUNIT_TEST() [19/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_getActiveId  )
private

◆ CPPUNIT_TEST() [20/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_haveConfig  )
private

◆ CPPUNIT_TEST() [21/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_isActive_on_addConfigurationSet  )
private

◆ CPPUNIT_TEST() [22/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_isActive_on_removeConfigurationSet  )
private

◆ CPPUNIT_TEST() [23/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_getConfigurationSets  )
private

◆ CPPUNIT_TEST() [24/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_addConfigurationSet_and_getConfigurationSet  )
private

◆ CPPUNIT_TEST() [25/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setConfigurationSetValues  )
private

◆ CPPUNIT_TEST() [26/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_setConfigurationSetValues_with_inexist_configuration_set  )
private

◆ CPPUNIT_TEST() [27/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_getActiveConfigurationSet  )
private

◆ CPPUNIT_TEST() [28/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_removeConfigurationSet  )
private

◆ CPPUNIT_TEST() [29/29]

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST ( test_removeConfigurationSet_with_inexist_configuration_id  )
private

◆ CPPUNIT_TEST_SUITE()

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST_SUITE ( ConfigAdminTests  )
private

◆ CPPUNIT_TEST_SUITE_END()

ConfigAdmin::ConfigAdminTests::CPPUNIT_TEST_SUITE_END ( )
private

◆ getPropertiesBy()

const coil::Properties* ConfigAdmin::ConfigAdminTests::getPropertiesBy ( const std::string &  name,
const std::vector< coil::Properties *> &  propertiesSet 
) const
inlineprivate

Definition at line 342 of file ConfigAdminTests.cpp.

◆ setUp()

virtual void ConfigAdmin::ConfigAdminTests::setUp ( )
inlinevirtual

Test initialization.

Definition at line 375 of file ConfigAdminTests.cpp.

◆ tearDown()

virtual void ConfigAdmin::ConfigAdminTests::tearDown ( )
inlinevirtual

Test finalization.

Definition at line 382 of file ConfigAdminTests.cpp.

◆ test_activateConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_activateConfigurationSet ( )
inline

Definition at line 1047 of file ConfigAdminTests.cpp.

◆ test_addConfigurationSet_and_getConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_addConfigurationSet_and_getConfigurationSet ( )
inline

addConfigurationSet()メソッドとgetConfigurationSet()メソッドのテスト

  • addConfigurationSet()で、コンフィグレーションセットを追加できるか?
  • getConfigurationSet()で、追加したコンフィグレーションセットを正しく取得できるか?

Definition at line 901 of file ConfigAdminTests.cpp.

◆ test_bindParameter()

void ConfigAdmin::ConfigAdminTests::test_bindParameter ( )
inline

bindParameter()メソッドのテスト

  • bindParameter()で、正常に変数をバインドできるか?
  • バインドした変数は、指定したデフォルト値に正しく更新されているか?

Definition at line 409 of file ConfigAdminTests.cpp.

◆ test_bindParameter_already_exist()

void ConfigAdmin::ConfigAdminTests::test_bindParameter_already_exist ( )
inline

bindParameter()メソッドのテスト

  • 同一名称の変数バインドを試みて、意図どおり失敗するか?

Definition at line 430 of file ConfigAdminTests.cpp.

◆ test_bindParameter_illegal_default_value()

void ConfigAdmin::ConfigAdminTests::test_bindParameter_illegal_default_value ( )
inline

bindParameter()メソッドのテスト

  • 指定のデータ型に変換できないデフォルト値を指定して、意図どおり失敗するか?

Definition at line 459 of file ConfigAdminTests.cpp.

◆ test_constructor()

void ConfigAdmin::ConfigAdminTests::test_constructor ( )
inline

コンストラクタのテスト

  • 引数で指定したコンフィグレーションセットが、正しく設定されるか?

Definition at line 391 of file ConfigAdminTests.cpp.

◆ test_getActiveConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_getActiveConfigurationSet ( )
inline

getActiveConfigurationSet()メソッドのテスト

  • アクティブコンフィグレーションセットを正しく取得できるか?

Definition at line 972 of file ConfigAdminTests.cpp.

◆ test_getActiveId()

void ConfigAdmin::ConfigAdminTests::test_getActiveId ( )
inline

getActiveId()メソッドのテスト

  • アクティブ化したコンフィグレーションセットのIDを正しく取得できるか?

Definition at line 746 of file ConfigAdminTests.cpp.

◆ test_getConfigurationSets()

void ConfigAdmin::ConfigAdminTests::test_getConfigurationSets ( )
inline

getConfigurationSets()メソッドのテスト

  • 登録されている全てのコンフィグレーションセットを正しく取得できるか?

Definition at line 855 of file ConfigAdminTests.cpp.

◆ test_haveConfig()

void ConfigAdmin::ConfigAdminTests::test_haveConfig ( )
inline

haveConfig()メソッドのテスト

  • 存在するコンフィグレーションセットIDを指定した場合に、haveConfig()で正しく真値を得るか?
  • 存在しないコンフィグレーションセットIDを指定した場合に、haveConfig()で正しく偽値を得るか?

Definition at line 776 of file ConfigAdminTests.cpp.

◆ test_isActive_on_activateConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_isActive_on_activateConfigurationSet ( )
inline

isActive()メソッドのテスト

  • activateConfigurationSet()でアクティブ化した後は、isActive()は正しく真値を得るか?

Definition at line 840 of file ConfigAdminTests.cpp.

◆ test_isActive_on_addConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_isActive_on_addConfigurationSet ( )
inline

isActive()メソッドのテスト

  • addConfigurationSet()呼出後は、isActive()は正しく偽値を得るか?
  • activateConfigurationSet()でアクティブ化した後は、isActive()は正しく真値を得るか?

Definition at line 798 of file ConfigAdminTests.cpp.

◆ test_isActive_on_removeConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_isActive_on_removeConfigurationSet ( )
inline

isActive()メソッドのテスト

  • removeConfigurationSet()呼出後は、isActive()は正しく偽値を得るか?

Definition at line 818 of file ConfigAdminTests.cpp.

◆ test_isActive_on_setConfigurationSetValues()

void ConfigAdmin::ConfigAdminTests::test_isActive_on_setConfigurationSetValues ( )
inline

Definition at line 845 of file ConfigAdminTests.cpp.

◆ test_isChanged_on_activateConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_isChanged_on_activateConfigurationSet ( )
inline

isChanged()メソッドのテスト

  • activateConfigurationSet()呼出後は、isChanged()は真値となるか?

Definition at line 712 of file ConfigAdminTests.cpp.

◆ test_isChanged_on_addConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_isChanged_on_addConfigurationSet ( )
inline

isChanged()メソッドのテスト

  • addConfigurationSet()呼出後は、isChanged()は真値となるか?

Definition at line 664 of file ConfigAdminTests.cpp.

◆ test_isChanged_on_removeConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_isChanged_on_removeConfigurationSet ( )
inline

isChanged()メソッドのテスト

  • removeConfigurationSet()呼出後は、isChanged()は真値となるか?

Definition at line 687 of file ConfigAdminTests.cpp.

◆ test_isChanged_on_setConfigurationSetValues()

void ConfigAdmin::ConfigAdminTests::test_isChanged_on_setConfigurationSetValues ( )
inline

Definition at line 736 of file ConfigAdminTests.cpp.

◆ test_isExist()

void ConfigAdmin::ConfigAdminTests::test_isExist ( )
inline

isExist()メソッドのテスト

  • バインドした変数の名称でisExist()を呼出し、真値が得られるか?
  • バインドしていない名称でisExist()を呼出し、偽値が得られるか?

Definition at line 639 of file ConfigAdminTests.cpp.

◆ test_removeConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_removeConfigurationSet ( )
inline

removeConfigurationSet()のテスト

  • 登録されているコンフィグレーションセットを正しく登録解除できるか?

Definition at line 1006 of file ConfigAdminTests.cpp.

◆ test_removeConfigurationSet_with_inexist_configuration_id()

void ConfigAdmin::ConfigAdminTests::test_removeConfigurationSet_with_inexist_configuration_id ( )
inline

removeConfigurationSet()のテスト

  • 存在しないコンフィグレーションセットIDを指定した場合に、意図どおりに失敗するか?

Definition at line 1029 of file ConfigAdminTests.cpp.

◆ test_setConfigurationSetValues()

void ConfigAdmin::ConfigAdminTests::test_setConfigurationSetValues ( )
inline

setConfigurationSetValues()メソッドのテスト

  • 指定したプロパティが、正しく指定したコンフィグレーションセットに追加されるか?

Definition at line 921 of file ConfigAdminTests.cpp.

◆ test_setConfigurationSetValues_with_inexist_configuration_set()

void ConfigAdmin::ConfigAdminTests::test_setConfigurationSetValues_with_inexist_configuration_set ( )
inline

setConfigurationSetValues()メソッドのテスト

  • 存在しないコンフィグレーションセットに対してプロパティ追加を試みて、意図どおり失敗するか?
  • 失敗後に、登録済みのコンフィグレーションセットが影響を受けていないか?

Definition at line 947 of file ConfigAdminTests.cpp.

◆ test_setOnActivateSet()

void ConfigAdmin::ConfigAdminTests::test_setOnActivateSet ( )
inline

setOnActivateSet()メソッドのテスト

Definition at line 1211 of file ConfigAdminTests.cpp.

◆ test_setOnAddConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_setOnAddConfigurationSet ( )
inline

setOnAddConfigurationSet()メソッドのテスト

Definition at line 1149 of file ConfigAdminTests.cpp.

◆ test_setOnRemoveConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_setOnRemoveConfigurationSet ( )
inline

setOnRemoveConfigurationSet()メソッドのテスト

Definition at line 1181 of file ConfigAdminTests.cpp.

◆ test_setOnSetConfigurationSet()

void ConfigAdmin::ConfigAdminTests::test_setOnSetConfigurationSet ( )
inline

setOnSetConfigurationSet()メソッドのテスト

Definition at line 1117 of file ConfigAdminTests.cpp.

◆ test_setOnUpdate()

void ConfigAdmin::ConfigAdminTests::test_setOnUpdate ( )
inline

setOnUpdate()メソッドのテスト

Definition at line 1057 of file ConfigAdminTests.cpp.

◆ test_setOnUpdateParam()

void ConfigAdmin::ConfigAdminTests::test_setOnUpdateParam ( )
inline

setOnUpdateParam()メソッドのテスト

Definition at line 1087 of file ConfigAdminTests.cpp.

◆ test_update()

void ConfigAdmin::ConfigAdminTests::test_update ( )
inline

update()メソッドのテスト

  • コンフィグレーションセットを指定してupdate()し、その内容でバインド変数値が正しく更新されるか?

Definition at line 477 of file ConfigAdminTests.cpp.

◆ test_update_by_active_configuration_set()

void ConfigAdmin::ConfigAdminTests::test_update_by_active_configuration_set ( )
inline

update()メソッド(アクティブコンフィグレーションセット)のテスト

  • update()呼出しにより、バインド変数がアクティブなコンフィグレーションセットの値で更新されるか?

Definition at line 590 of file ConfigAdminTests.cpp.

◆ test_update_by_inexist_configuration_set()

void ConfigAdmin::ConfigAdminTests::test_update_by_inexist_configuration_set ( )
inline

update()メソッドのテスト

  • 存在しないコンフィグレーションIDを指定してupdate()を呼出した場合に、 バインド変数が更新されずに、そのまま保持されるか?

Definition at line 519 of file ConfigAdminTests.cpp.

◆ test_update_with_specified_parameter_name()

void ConfigAdmin::ConfigAdminTests::test_update_with_specified_parameter_name ( )
inline

update()メソッド(名称指定)のテスト

  • 指定したコンフィグレーションセットの指定した名称の変数だけが、正しく更新されるか?

Definition at line 548 of file ConfigAdminTests.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:46