Kaydet (Commit) f8526d1f authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS qadev18 (1.2.64); FILE MERGED

2004/06/18 16:33:33 sg 1.2.64.1: #112549#CHG: updated tests after cfgapi cws
üst 92f4e245
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: SchemaParser.java,v $ * $RCSfile: SchemaParser.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-11-18 16:27:13 $ * last change:$Date: 2004-07-23 10:47:06 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -81,6 +81,7 @@ public class SchemaParser extends TestCase { ...@@ -81,6 +81,7 @@ public class SchemaParser extends TestCase {
XInterface oObj = null; XInterface oObj = null;
XSimpleFileAccess simpleAccess = null; XSimpleFileAccess simpleAccess = null;
XInputStream xStream = null; XInputStream xStream = null;
String filename = null;
try { try {
oObj = (XInterface) ((XMultiServiceFactory)tParam.getMSF()) oObj = (XInterface) ((XMultiServiceFactory)tParam.getMSF())
...@@ -88,7 +89,8 @@ public class SchemaParser extends TestCase { ...@@ -88,7 +89,8 @@ public class SchemaParser extends TestCase {
Object fileacc = ((XMultiServiceFactory)tParam.getMSF()).createInstance("com.sun.star.comp.ucb.SimpleFileAccess"); Object fileacc = ((XMultiServiceFactory)tParam.getMSF()).createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
simpleAccess = (XSimpleFileAccess) simpleAccess = (XSimpleFileAccess)
UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
String filename = util.utils.getOfficeURL((XMultiServiceFactory)tParam.getMSF())+"/../share/registry/schema/org/openoffice/Setup.xcs"; filename = util.utils.getOfficeURL((XMultiServiceFactory)tParam.getMSF())+"/../share/registry/schema/org/openoffice/Setup.xcs";
log.println("Going to parse: "+filename); log.println("Going to parse: "+filename);
xStream = simpleAccess.openFileRead(filename); xStream = simpleAccess.openFileRead(filename);
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
...@@ -101,7 +103,7 @@ public class SchemaParser extends TestCase { ...@@ -101,7 +103,7 @@ public class SchemaParser extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj); TestEnvironment tEnv = new TestEnvironment(oObj);
tEnv.addObjRelation("InputStream", xStream); tEnv.addObjRelation("InputStream", xStream);
tEnv.addObjRelation("ParsedFileName", filename);
return tEnv; return tEnv;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment