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

Classes

class  InvokerMock
 

Public Member Functions

 ManagerTests ()
 Constructor. More...
 
virtual void setUp ()
 Test initialization. More...
 
virtual void tearDown ()
 Test finalization. More...
 
void test_activateManager ()
 
void test_bindExecutionContext ()
 
void test_cleanupComponent ()
 cleanupComponent()メソッドのテスト More...
 
void test_createComponent_DataFlowComponent ()
 createComponent()メソッドのテスト(DataFlowComponentの場合) More...
 
void test_createComponent_failed_in_bindExecutionContext ()
 
void test_createComponent_Non_DataFlowComponent ()
 
void test_createComponent_with_illegal_module_name ()
 createComponent()メソッドのテスト More...
 
void test_createContext ()
 createContext()メソッドのテスト More...
 
void test_deleteComponent ()
 deleteComponent()メソッドのテスト More...
 
void test_getComponent ()
 
void test_getComponents ()
 getComponents()メソッドのテスト More...
 
void test_getConfig ()
 getConfig()メソッドのテスト More...
 
void test_getFactoryProfiles ()
 getFactoryProfiles()メソッドのテスト More...
 
void test_getLoadableModules ()
 getLoadableModules()メソッドのテスト More...
 
void test_getLoadedModules ()
 getLoadedModules()メソッドのテスト More...
 
void test_getLogLevel ()
 getLogLevel()メソッドのテスト More...
 
void test_getModulesFactories ()
 getModulesFactories()メソッドのテスト More...
 
void test_getORB ()
 
void test_getPOA ()
 
void test_getPOAManager ()
 
void test_init2 ()
 init()、shutdown()から呼ばれるprotected関数のテスト More...
 
void test_init_without_arguments ()
 init()メソッドのテスト More...
 
void test_initComposite ()
 initComposite()メソッドのテスト More...
 
void test_initFactories ()
 initFactories()メソッドのテスト More...
 
void test_instance ()
 instance()メソッドのテスト More...
 
void test_instance_without_init ()
 instance()メソッドのテスト More...
 
void test_join ()
 
void test_load ()
 load()メソッドのテスト More...
 
void test_notifyFinalized ()
 
void test_procContextArgs ()
 procContextArgs()メソッドのテスト More...
 
void test_registerECFactory ()
 registerECFactory() More...
 
void test_registerFactory ()
 registerFactory()メソッドのテスト More...
 
void test_runManager_block ()
 runManager()メソッドのテスト(ブロッキングモード) More...
 
void test_runManager_no_block ()
 runManager()メソッドのテスト(非ブロッキングモード) More...
 
void test_setModuleInitProc ()
 setModuleInitProc()メソッドのテスト More...
 
void test_shutdown ()
 
void test_terminate_after_the_activation ()
 terminate()メソッドのテスト More...
 
void test_terminate_immediately_after_the_initialization ()
 terminate()メソッドのテスト More...
 
void test_unload ()
 unload()メソッドのテスト More...
 
void test_unloadAll ()
 unloadAll()メソッドのテスト More...
 
void test_unregisterComponent ()
 
virtual ~ManagerTests ()
 Destructor. More...
 

Private Member Functions

bool canResolve (const char *name_server, const char *id, const char *kind)
 
 CPPUNIT_TEST (test_getLogLevel)
 
 CPPUNIT_TEST (test_getLoadedModules)
 
 CPPUNIT_TEST (test_getFactoryProfiles)
 
 CPPUNIT_TEST (test_createContext)
 
 CPPUNIT_TEST (test_init2)
 
 CPPUNIT_TEST (test_initFactories)
 
 CPPUNIT_TEST (test_initComposite)
 
 CPPUNIT_TEST (test_procContextArgs)
 
 CPPUNIT_TEST (test_init_without_arguments)
 
 CPPUNIT_TEST (test_instance)
 
 CPPUNIT_TEST (test_instance_without_init)
 
 CPPUNIT_TEST (test_getConfig)
 
 CPPUNIT_TEST (test_setModuleInitProc)
 
 CPPUNIT_TEST (test_load)
 
 CPPUNIT_TEST (test_unload)
 
 CPPUNIT_TEST (test_unloadAll)
 
 CPPUNIT_TEST (test_registerFactory)
 
 CPPUNIT_TEST (test_registerECFactory)
 
 CPPUNIT_TEST (test_getModulesFactories)
 
 CPPUNIT_TEST (test_getLoadableModules)
 
 CPPUNIT_TEST (test_notifyFinalized)
 
 CPPUNIT_TEST_SUITE (ManagerTests)
 
 CPPUNIT_TEST_SUITE_END ()
 
CosNaming::NamingContext_var getRootContext (const std::string &name_server)
 
bool isFound (const std::vector< std::string > &list, const std::string &target)
 

Private Attributes

RTC::Managerm_mgr
 

Detailed Description

Definition at line 255 of file ManagerTests.cpp.

Constructor & Destructor Documentation

◆ ManagerTests()

Tests::ManagerTests::ManagerTests ( )
inline

Constructor.

Definition at line 364 of file ManagerTests.cpp.

◆ ~ManagerTests()

virtual Tests::ManagerTests::~ManagerTests ( )
inlinevirtual

Destructor.

Definition at line 371 of file ManagerTests.cpp.

Member Function Documentation

◆ canResolve()

bool Tests::ManagerTests::canResolve ( const char *  name_server,
const char *  id,
const char *  kind 
)
inlineprivate

Definition at line 334 of file ManagerTests.cpp.

◆ CPPUNIT_TEST() [1/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_getLogLevel  )
private

◆ CPPUNIT_TEST() [2/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_getLoadedModules  )
private

◆ CPPUNIT_TEST() [3/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_getFactoryProfiles  )
private

◆ CPPUNIT_TEST() [4/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_createContext  )
private

◆ CPPUNIT_TEST() [5/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_init2  )
private

◆ CPPUNIT_TEST() [6/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_initFactories  )
private

◆ CPPUNIT_TEST() [7/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_initComposite  )
private

◆ CPPUNIT_TEST() [8/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_procContextArgs  )
private

◆ CPPUNIT_TEST() [9/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_init_without_arguments  )
private

◆ CPPUNIT_TEST() [10/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_instance  )
private

◆ CPPUNIT_TEST() [11/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_instance_without_init  )
private

◆ CPPUNIT_TEST() [12/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_getConfig  )
private

◆ CPPUNIT_TEST() [13/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_setModuleInitProc  )
private

◆ CPPUNIT_TEST() [14/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_load  )
private

◆ CPPUNIT_TEST() [15/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_unload  )
private

◆ CPPUNIT_TEST() [16/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_unloadAll  )
private

◆ CPPUNIT_TEST() [17/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_registerFactory  )
private

◆ CPPUNIT_TEST() [18/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_registerECFactory  )
private

◆ CPPUNIT_TEST() [19/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_getModulesFactories  )
private

◆ CPPUNIT_TEST() [20/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_getLoadableModules  )
private

◆ CPPUNIT_TEST() [21/21]

Tests::ManagerTests::CPPUNIT_TEST ( test_notifyFinalized  )
private

◆ CPPUNIT_TEST_SUITE()

Tests::ManagerTests::CPPUNIT_TEST_SUITE ( ManagerTests  )
private

◆ CPPUNIT_TEST_SUITE_END()

Tests::ManagerTests::CPPUNIT_TEST_SUITE_END ( )
private

◆ getRootContext()

CosNaming::NamingContext_var Tests::ManagerTests::getRootContext ( const std::string &  name_server)
inlineprivate

Definition at line 317 of file ManagerTests.cpp.

◆ isFound()

bool Tests::ManagerTests::isFound ( const std::vector< std::string > &  list,
const std::string &  target 
)
inlineprivate

Definition at line 312 of file ManagerTests.cpp.

◆ setUp()

virtual void Tests::ManagerTests::setUp ( )
inlinevirtual

Test initialization.

Definition at line 378 of file ManagerTests.cpp.

◆ tearDown()

virtual void Tests::ManagerTests::tearDown ( )
inlinevirtual

Test finalization.

Definition at line 388 of file ManagerTests.cpp.

◆ test_activateManager()

void Tests::ManagerTests::test_activateManager ( )
inline

Definition at line 571 of file ManagerTests.cpp.

◆ test_bindExecutionContext()

void Tests::ManagerTests::test_bindExecutionContext ( )
inline

Definition at line 1192 of file ManagerTests.cpp.

◆ test_cleanupComponent()

void Tests::ManagerTests::test_cleanupComponent ( )
inline

cleanupComponent()メソッドのテスト

  • 登録したコンポーネントが、ネームサービスから正しく登録解除されるか?
  • 登録したコンポーネントが、Managerから正しく登録解除されるか?

Definition at line 1119 of file ManagerTests.cpp.

◆ test_createComponent_DataFlowComponent()

void Tests::ManagerTests::test_createComponent_DataFlowComponent ( )
inline

createComponent()メソッドのテスト(DataFlowComponentの場合)

  • 正しくコンポーネントを生成できるか?

Definition at line 994 of file ManagerTests.cpp.

◆ test_createComponent_failed_in_bindExecutionContext()

void Tests::ManagerTests::test_createComponent_failed_in_bindExecutionContext ( )
inline

Definition at line 1080 of file ManagerTests.cpp.

◆ test_createComponent_Non_DataFlowComponent()

void Tests::ManagerTests::test_createComponent_Non_DataFlowComponent ( )
inline

Definition at line 1048 of file ManagerTests.cpp.

◆ test_createComponent_with_illegal_module_name()

void Tests::ManagerTests::test_createComponent_with_illegal_module_name ( )
inline

createComponent()メソッドのテスト

  • 登録されていないモジュール名を指定してコンポーネント生成を試みて、意図どおりNULLで戻るか?
  • モジュール名にNULLを指定してコンポーネント生成を試みて、意図どおりNULLで戻るか?

Definition at line 1059 of file ManagerTests.cpp.

◆ test_createContext()

void Tests::ManagerTests::test_createContext ( )
inline

createContext()メソッドのテスト

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

Definition at line 1469 of file ManagerTests.cpp.

◆ test_deleteComponent()

void Tests::ManagerTests::test_deleteComponent ( )
inline

deleteComponent()メソッドのテスト

  • RTコンポーネントの削除が正しくできるか?

Definition at line 1501 of file ManagerTests.cpp.

◆ test_getComponent()

void Tests::ManagerTests::test_getComponent ( )
inline

Definition at line 1197 of file ManagerTests.cpp.

◆ test_getComponents()

void Tests::ManagerTests::test_getComponents ( )
inline

getComponents()メソッドのテスト

  • getComponents()で、生成したすべてのコンポーネントを取得できるか?
  • 登録解除したコンポーネントが、正しく一覧から除外されているか?

Definition at line 1208 of file ManagerTests.cpp.

◆ test_getConfig()

void Tests::ManagerTests::test_getConfig ( )
inline

getConfig()メソッドのテスト

  • confファイルで指定した各種設定を、getConfig()を通じて正しく取得できるか?

Definition at line 527 of file ManagerTests.cpp.

◆ test_getFactoryProfiles()

void Tests::ManagerTests::test_getFactoryProfiles ( )
inline

getFactoryProfiles()メソッドのテスト

  • RTコンポーネント用ファクトリをリストを正しく取得できるか?

Definition at line 1441 of file ManagerTests.cpp.

◆ test_getLoadableModules()

void Tests::ManagerTests::test_getLoadableModules ( )
inline

getLoadableModules()メソッドのテスト

  • ロード可能なモジュールリストを正しく取得できるか?

Definition at line 867 of file ManagerTests.cpp.

◆ test_getLoadedModules()

void Tests::ManagerTests::test_getLoadedModules ( )
inline

getLoadedModules()メソッドのテスト

  • ロード済みのモジュールリストを正しく取得できるか?

Definition at line 1401 of file ManagerTests.cpp.

◆ test_getLogLevel()

void Tests::ManagerTests::test_getLogLevel ( )
inline

getLogLevel()メソッドのテスト

  • log_levelが正しく返却されるか?

Definition at line 1388 of file ManagerTests.cpp.

◆ test_getModulesFactories()

void Tests::ManagerTests::test_getModulesFactories ( )
inline

getModulesFactories()メソッドのテスト

  • 登録されているFactoryの("implementation_id"プロパティの)リストを正しく取得できるか?

Definition at line 962 of file ManagerTests.cpp.

◆ test_getORB()

void Tests::ManagerTests::test_getORB ( )
inline

Definition at line 1267 of file ManagerTests.cpp.

◆ test_getPOA()

void Tests::ManagerTests::test_getPOA ( )
inline

Definition at line 1272 of file ManagerTests.cpp.

◆ test_getPOAManager()

void Tests::ManagerTests::test_getPOAManager ( )
inline

Definition at line 1277 of file ManagerTests.cpp.

◆ test_init2()

void Tests::ManagerTests::test_init2 ( )
inline

init()、shutdown()から呼ばれるprotected関数のテスト

  • protected関数が正しく動作しているか?

Definition at line 1554 of file ManagerTests.cpp.

◆ test_init_without_arguments()

void Tests::ManagerTests::test_init_without_arguments ( )
inline

init()メソッドのテスト

  • コマンドライン引数なしでinit()を正常に呼出して、インスタンスを取得できるか?

Definition at line 412 of file ManagerTests.cpp.

◆ test_initComposite()

void Tests::ManagerTests::test_initComposite ( )
inline

initComposite()メソッドのテスト

  • init()実行後、initComposite()の実行結果としてFactoryManagerに正しく登録されているか?

Definition at line 1331 of file ManagerTests.cpp.

◆ test_initFactories()

void Tests::ManagerTests::test_initFactories ( )
inline

initFactories()メソッドのテスト

  • init()実行後、initFactories()の実行結果としてFactoryMapに正しく登録されているか?

Definition at line 1287 of file ManagerTests.cpp.

◆ test_instance()

void Tests::ManagerTests::test_instance ( )
inline

instance()メソッドのテスト

  • instance()を通じて取得したインスタンスは、init()時に得たインスタンスと同一か?

Definition at line 425 of file ManagerTests.cpp.

◆ test_instance_without_init()

void Tests::ManagerTests::test_instance_without_init ( )
inline

instance()メソッドのテスト

  • 事前にinit()を呼出さずにinstance()を呼出した場合、正常にインスタンスが生成されるか?

Definition at line 443 of file ManagerTests.cpp.

◆ test_join()

void Tests::ManagerTests::test_join ( )
inline

Definition at line 516 of file ManagerTests.cpp.

◆ test_load()

void Tests::ManagerTests::test_load ( )
inline

load()メソッドのテスト

  • 指定したモジュールをロードして、指定の初期化関数が正しく呼び出されるか?

Definition at line 727 of file ManagerTests.cpp.

◆ test_notifyFinalized()

void Tests::ManagerTests::test_notifyFinalized ( )
inline

Definition at line 506 of file ManagerTests.cpp.

◆ test_procContextArgs()

void Tests::ManagerTests::test_procContextArgs ( )
inline

procContextArgs()メソッドのテスト

  • 引数ec_argsにより戻り値true・falseが正しく返却されるか?

Definition at line 1347 of file ManagerTests.cpp.

◆ test_registerECFactory()

void Tests::ManagerTests::test_registerECFactory ( )
inline

registerECFactory()

  • 正常にECFactoryを登録できるか?

Definition at line 935 of file ManagerTests.cpp.

◆ test_registerFactory()

void Tests::ManagerTests::test_registerFactory ( )
inline

registerFactory()メソッドのテスト

  • Factoryを正常に登録できるか?

Definition at line 911 of file ManagerTests.cpp.

◆ test_runManager_block()

void Tests::ManagerTests::test_runManager_block ( )
inline

runManager()メソッドのテスト(ブロッキングモード)

  • POAManagerがアクティブ化されるか?

Definition at line 638 of file ManagerTests.cpp.

◆ test_runManager_no_block()

void Tests::ManagerTests::test_runManager_no_block ( )
inline

runManager()メソッドのテスト(非ブロッキングモード)

  • POAManagerがアクティブ化されるか?

Definition at line 581 of file ManagerTests.cpp.

◆ test_setModuleInitProc()

void Tests::ManagerTests::test_setModuleInitProc ( )
inline

setModuleInitProc()メソッドのテスト

  • アクティブ化により、設定した初期化プロシージャが正しく呼び出されるか?

Definition at line 549 of file ManagerTests.cpp.

◆ test_shutdown()

void Tests::ManagerTests::test_shutdown ( )
inline

Definition at line 511 of file ManagerTests.cpp.

◆ test_terminate_after_the_activation()

void Tests::ManagerTests::test_terminate_after_the_activation ( )
inline

terminate()メソッドのテスト

  • active化の後でterminate()を呼出し、正常に終了できるか?

Definition at line 480 of file ManagerTests.cpp.

◆ test_terminate_immediately_after_the_initialization()

void Tests::ManagerTests::test_terminate_immediately_after_the_initialization ( )
inline

terminate()メソッドのテスト

  • 初期化後すぐにterminate()を呼出し、正常に終了できるか?

Definition at line 454 of file ManagerTests.cpp.

◆ test_unload()

void Tests::ManagerTests::test_unload ( )
inline

unload()メソッドのテスト

  • いったんloadしたモジュールを、正しくunloadできるか?

Definition at line 765 of file ManagerTests.cpp.

◆ test_unloadAll()

void Tests::ManagerTests::test_unloadAll ( )
inline

unloadAll()メソッドのテスト

  • unloadAll()により、ロードしたモジュールがすべてアンロードされるか?

Definition at line 806 of file ManagerTests.cpp.

◆ test_unregisterComponent()

void Tests::ManagerTests::test_unregisterComponent ( )
inline

Definition at line 1187 of file ManagerTests.cpp.

Member Data Documentation

◆ m_mgr

RTC::Manager* Tests::ManagerTests::m_mgr
private

Definition at line 308 of file ManagerTests.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:48