Author: vhalbert(a)redhat.com
Date: 2009-05-07 19:15:39 -0400 (Thu, 07 May 2009)
New Revision: 888
Modified:
trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java
Log:
JBEDSP-977 - converting importcb to use admin. Add new testcase
Modified:
trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java
===================================================================
---
trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java 2009-05-07
21:38:37 UTC (rev 887)
+++
trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java 2009-05-07
23:15:39 UTC (rev 888)
@@ -51,6 +51,7 @@
import com.metamatrix.common.config.util.ConfigurationImportExportUtility;
import com.metamatrix.common.util.ByteArrayHelper;
import com.metamatrix.core.util.FileUtils;
+import com.metamatrix.core.util.ObjectConverterUtil;
import com.metamatrix.core.util.UnitTestUtil;
@@ -380,6 +381,13 @@
if (cb == null) {
fail("didnt import binding");
}
+
+ InputStream is = ObjectConverterUtil.convertToInputStream(new File(filename));
+
+ XMLConfigurationImportExportUtility ciu = new
XMLConfigurationImportExportUtility();
+
+ ConnectorBinding cb2 = ciu.importConnectorBinding(is, new
BasicConfigurationObjectEditor(false), "");
+
}
public void testImportExportConfig() throws Exception {
Show replies by date