[openrtm-commit:00414] r566 - trunk/jp.go.aist.rtm.RTC/tests/src/jp/go/aist/rtm/RTC

openrtm @ openrtm.org openrtm @ openrtm.org
2011年 9月 21日 (水) 15:41:04 JST


Author: fsi-katami
Date: 2011-09-21 15:41:04 +0900 (Wed, 21 Sep 2011)
New Revision: 566

Modified:
   trunk/jp.go.aist.rtm.RTC/tests/src/jp/go/aist/rtm/RTC/ManagerTest.java
Log:
Classpath for the test have been added.

Modified: trunk/jp.go.aist.rtm.RTC/tests/src/jp/go/aist/rtm/RTC/ManagerTest.java
===================================================================
--- trunk/jp.go.aist.rtm.RTC/tests/src/jp/go/aist/rtm/RTC/ManagerTest.java	2011-09-20 05:35:41 UTC (rev 565)
+++ trunk/jp.go.aist.rtm.RTC/tests/src/jp/go/aist/rtm/RTC/ManagerTest.java	2011-09-21 06:41:04 UTC (rev 566)
@@ -159,7 +159,8 @@
 
     private boolean isFound2(final Vector<Properties> list, final String target) {
         for( int index=0;index<list.size();index++ ) {
-            String str = list.get(index).getName();
+            //String str = list.get(index).getName();
+            String str = list.get(index).getProperty("file_path");
             if( str.equals(target) ) return true;
         }
         return false;
@@ -818,6 +819,7 @@
         // bindExecutionContext()で失敗するように、意図的にECFactoryをクリア
         // bindExecutionContext()は、未使用となる
         ManagerMock2 mgr2 = new ManagerMock2(m_mgr);
+        mgr2.initManager(null);
         mgr2.clearECFactory();
 
         // コンポーネント生成を試みて、意図どおりNULLで戻るか?
@@ -1230,7 +1232,7 @@
 
         // 環境変数 TERM の値 xterm が取得できていればOK
         Properties properties = m_mgr.getConfig();
-        assertEquals("xterm", properties.getProperty("logger.file_name"));
+        assertEquals("kterm", properties.getProperty("logger.file_name"));
 
     }
 



openrtm-commit メーリングリストの案内