Kaydet (Commit) 8856d306 authored tarafından Noel Grandin's avatar Noel Grandin

cid#1326672 DLS: Dead local store

Change-Id: I43bbad0c77022d999e0a10b10ca9f1e316ed7b9f
üst 27336e23
...@@ -67,25 +67,15 @@ public class OQueryDesign extends TestCase { ...@@ -67,25 +67,15 @@ public class OQueryDesign extends TestCase {
log.println( "creating a test environment" ); log.println( "creating a test environment" );
XInterface oObj = null;
XDispatchProvider aProv = UnoRuntime.queryInterface(XDispatchProvider.class,xDesk); XDispatchProvider aProv = UnoRuntime.queryInterface(XDispatchProvider.class,xDesk);
XDispatch getting = null;
XMultiServiceFactory xMSF = Param.getMSF(); XMultiServiceFactory xMSF = Param.getMSF();
XNameAccess xNameAccess = null;
// we use the first datasource // we use the first datasource
XDataSource xDS = null; XNameAccess xNameAccess = UnoRuntime.queryInterface(
xNameAccess = UnoRuntime.queryInterface(
XNameAccess.class, XNameAccess.class,
xMSF.createInstance("com.sun.star.sdb.DatabaseContext")); xMSF.createInstance("com.sun.star.sdb.DatabaseContext"));
xDS = UnoRuntime.queryInterface( XDataSource xDS = UnoRuntime.queryInterface(
XDataSource.class, xNameAccess.getByName( "Bibliography" )); XDataSource.class, xNameAccess.getByName( "Bibliography" ));
xNameAccess = UnoRuntime.queryInterface(
XNameAccess.class,
xMSF.createInstance("com.sun.star.sdb.DatabaseContext"));
log.println("check XMultiServiceFactory"); log.println("check XMultiServiceFactory");
...@@ -94,7 +84,7 @@ public class OQueryDesign extends TestCase { ...@@ -94,7 +84,7 @@ public class OQueryDesign extends TestCase {
log.println( "opening QueryDesign" ); log.println( "opening QueryDesign" );
URL the_url = new URL(); URL the_url = new URL();
the_url.Complete = ".component:DB/QueryDesign"; the_url.Complete = ".component:DB/QueryDesign";
getting = aProv.queryDispatch(the_url,"Query",12); XDispatch getting = aProv.queryDispatch(the_url,"Query",12);
PropertyValue[] Args = new PropertyValue[2]; PropertyValue[] Args = new PropertyValue[2];
PropertyValue param1 = new PropertyValue(); PropertyValue param1 = new PropertyValue();
param1.Name = "DataSourceName"; param1.Name = "DataSourceName";
...@@ -145,7 +135,7 @@ public class OQueryDesign extends TestCase { ...@@ -145,7 +135,7 @@ public class OQueryDesign extends TestCase {
params[2] = param3; params[2] = param3;
oObj = xFrame.getController(); XInterface oObj = xFrame.getController();
TestEnvironment tEnv = new TestEnvironment(oObj); TestEnvironment tEnv = new TestEnvironment(oObj);
......
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