diff options
Diffstat (limited to 'qadevOOo/tests/java/mod')
57 files changed, 66 insertions, 208 deletions
diff --git a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java index d9f10f5192c7..0c88f0a28355 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java @@ -82,9 +82,6 @@ public class CachedContentResultSetFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedContentResultSetFactory" ); diff --git a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java index e084ab9c1284..24d151c5be9f 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java @@ -80,9 +80,6 @@ public class CachedContentResultSetStubFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedContentResultSetStubFactory" ); diff --git a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java index 04deb7697ea2..c092967b70d5 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java @@ -80,9 +80,6 @@ public class CachedDynamicResultSetFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedDynamicResultSetFactory" ); diff --git a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java index 0ab63dcd48a0..1f29cf1556e6 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java @@ -77,9 +77,6 @@ public class CachedDynamicResultSetStubFactory extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - Object relationContainer = null ; - - try { oInterface = xMSF.createInstance ( "com.sun.star.ucb.CachedDynamicResultSetStubFactory" ); diff --git a/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java index ec2bcc3ed056..425866018748 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java @@ -97,21 +97,19 @@ public class ConnectionLineAccessibility extends TestCase { XInterface oObj = null; - Object oDBContext = null; Object oDBSource = null; Object newQuery = null; - Object toolkit = null; XStorable store = null; try { - oDBContext = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DatabaseContext"); oDBSource = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DataSource"); newQuery = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.QueryDefinition"); - toolkit = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) diff --git a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java index 911abfa5db15..9051c2c5ecc8 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java @@ -96,21 +96,19 @@ public class JoinViewAccessibility extends TestCase { { XInterface oObj = null; - Object oDBContext = null; Object oDBSource = null; Object newQuery = null; - Object toolkit = null; XStorable store = null; try { - oDBContext = ((XMultiServiceFactory) Param.getMSF ()) + ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.sdb.DatabaseContext"); oDBSource = ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.sdb.DataSource"); newQuery = ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.sdb.QueryDefinition"); - toolkit = ((XMultiServiceFactory) Param.getMSF ()) + ((XMultiServiceFactory) Param.getMSF ()) .createInstance ("com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) { diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java index 2ba6a2cd94a9..1526dc182e7f 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java @@ -156,16 +156,13 @@ public class OQueryDesign extends TestCase { } catch ( com.sun.star.lang.WrappedTargetException e){ throw new StatusException("could not get '" + sDataSourceName + "'" , e) ; } - XDocumentDataSource xDDS = UnoRuntime.queryInterface(XDocumentDataSource.class, oDataSource); -// XModel xMod = (XModel) UnoRuntime.queryInterface(XModel.class, xDDS.getDatabaseDocument ()); + UnoRuntime.queryInterface(XDocumentDataSource.class, oDataSource); // Frame = xMod.getCurrentController().getFrame(); xFrame = DesktopTools.getCurrentFrame(xMSF); - // get an instance of Frame - Object oFrame = null; - SOfficeFactory SOF = null; + SOfficeFactory SOF = null; SOF = SOfficeFactory.getFactory( xMSF ); try { diff --git a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java index 5246edd5a72b..3ab9edd40210 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java @@ -578,12 +578,10 @@ public class ORowSet extends TestCase { public void handle(XInteractionRequest xInteractionRequest) { log.println("### _XCompletedExecution.InteractionHandlerImpl: handle called."); - ParametersRequest req = null; boolean abort = false; Object o = xInteractionRequest.getRequest(); if (o instanceof ParametersRequest) { - req = (ParametersRequest)o; } else if (o instanceof AuthenticationRequest) { log.println("### The request in XCompletedExecution is of type 'AuthenticationRequest'"); diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java index ef07416e243d..a0b2b5d4760d 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java @@ -132,11 +132,6 @@ import com.sun.star.uno.XInterface; */ public class OSingleSelectQueryComposer extends TestCase { - private static int uniqueSuffix = 0 ; - private DBTools dbTools = null ; - private static String origDB = null ; - private PrintWriter log = null ; - private static String tmpDir = null ; String tableName = null; DBTools.DataSourceInfo srcInf = null; boolean isMySQLDB = false; @@ -172,9 +167,6 @@ public class OSingleSelectQueryComposer extends TestCase { XInterface oObj = null; Object oInterface = null; XMultiServiceFactory xMSF = null ; - boolean envCreatedOK = false ; - - try { xMSF = (XMultiServiceFactory)Param.getMSF(); @@ -250,8 +242,7 @@ public class OSingleSelectQueryComposer extends TestCase { tEnv.addObjRelation("xProp", xCol); tEnv.addObjRelation("colName", xCols.getElementNames()[0]); - envCreatedOK = true ; - return tEnv; + return tEnv; } catch(com.sun.star.uno.Exception e) { log.println("Can't create object" ); diff --git a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java index 4ea9fe8610db..5887999090df 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java @@ -97,20 +97,18 @@ public class TableWindowAccessibility extends TestCase { PrintWriter log) { XInterface oObj = null; - Object oDBContext = null; Object oDBSource = null; Object newQuery = null; - Object toolkit = null; XStorable store = null; try { - oDBContext = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DatabaseContext"); oDBSource = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.DataSource"); newQuery = ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.sdb.QueryDefinition"); - toolkit = ((XMultiServiceFactory) Param.getMSF()) + ((XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); diff --git a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java index 896c590af483..3d84958bfbbe 100644 --- a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java +++ b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java @@ -871,8 +871,7 @@ public class ODatabaseForm extends TestCase { int count = params.getCount(); try { for(int i=0; i<count; i++) { - Object aObject = params.getByIndex(i); - Any any = (Any)aObject; + params.getByIndex(i); log.println("### _XCompletedExecution.InteractionHandlerImpl: Parameter "+i+": "+params.getByIndex(i)); XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class, params.getByIndex(i)); log.println("### _XCompletedExecution.InteractionHandlerImpl: Parameter Name: '"+xProp.getPropertyValue("Name") + "' is set to Value '1'"); diff --git a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java index 84680fa1878a..1678ae0a5362 100644 --- a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java +++ b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java @@ -319,7 +319,6 @@ class OGridControlModelold extends TestCase { XPropertySet aControl2 = null; XPropertySet aControl3 = null; XPropertySet aControl4 = null; - XPropertySet aControl5 = null; XGridColumnFactory columns = null; @@ -327,8 +326,6 @@ class OGridControlModelold extends TestCase { // first we write what we are intend to do to log file log.println("creating a test environment"); - //get GridControlModel - String objName = "Grid"; XControlShape shape = FormTools.insertControlShape(xDrawDoc, 5000, 7000, 2000, 2000, "GridControl"); @@ -345,7 +342,7 @@ class OGridControlModelold extends TestCase { aControl2 = columns.createColumn("DateField"); aControl3 = columns.createColumn("TextField"); aControl4 = columns.createColumn("TextField"); - aControl5 = columns.createColumn("TextField"); + columns.createColumn("TextField"); } catch (com.sun.star.lang.IllegalArgumentException e) { // Some exception occures.FAILED log.println("!!! Couldn't create instance : " + e); diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java index b5689275dd8d..8c97bac37114 100644 --- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java +++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.java @@ -174,7 +174,6 @@ public class OTimeModel extends GenericModelTest { } static class Checker implements UpdateChecker { - private short lastItem = (short) 0; XLoadable formLoaderF = null; XPropertySet ps = null; XInterface ctrl = null; diff --git a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java index 9f4362a89bd2..f413ad9cced2 100644 --- a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java @@ -100,7 +100,7 @@ public class ModuleUIConfigurationManager extends TestCase { tEnv = new TestEnvironment(oObj); XNameAccess xMM = UnoRuntime.queryInterface(XNameAccess.class, xMSF.createInstance("com.sun.star.comp.framework.ModuleManager")); - String[] names = xMM.getElementNames(); + xMM.getElementNames(); o = xMSF.createInstance("com.sun.star.embed.StorageFactory"); XSingleServiceFactory xStorageService = UnoRuntime.queryInterface(XSingleServiceFactory.class, o); diff --git a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java index a53c46374db0..dae5c0f9191a 100644 --- a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java @@ -134,7 +134,7 @@ public class UIConfigurationManager extends TestCase { try { if (iUniqueCounter == 0) { iUniqueCounter++; - PropertyValue[][]props = xUIManager.getUIElementsInfo(UIElementType.UNKNOWN); + xUIManager.getUIElementsInfo(UIElementType.UNKNOWN); XIndexAccess xMenuBarSettings = xUIManager.getSettings( "private:resource/menubar/menubar", true); diff --git a/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java b/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java index 9b17a34042c2..ee007bcaa6d0 100644 --- a/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java +++ b/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java @@ -87,7 +87,7 @@ public class ContentHandlerFactory extends TestCase { XNameAccess xNA = UnoRuntime.queryInterface (XNameAccess.class, oObj); tEnv.addObjRelation("XMSF.serviceNames", xNA.getElementNames()); - String[] dummy = xNA.getElementNames(); + xNA.getElementNames(); // com.sun.star.container.XContainerQuery NamedValue[] querySequenze = new NamedValue[1]; diff --git a/qadevOOo/tests/java/mod/_fwl/FilterFactory.java b/qadevOOo/tests/java/mod/_fwl/FilterFactory.java index 0e105af4b6a1..e6b4b55cedcf 100644 --- a/qadevOOo/tests/java/mod/_fwl/FilterFactory.java +++ b/qadevOOo/tests/java/mod/_fwl/FilterFactory.java @@ -97,12 +97,11 @@ public class FilterFactory extends TestCase { // XNameContainer; XNameReplace String filterName = filterNames[0]; Object[] instance = null;; - PropertyValue instanceProp = new PropertyValue(); + new PropertyValue(); try{ instance = (Object[]) xNA.getByName(filterName); - PropertyValue[] props = (PropertyValue[]) instance; - instanceProp = getPropertyValue - (((PropertyValue[]) instance), "FilterService"); //instance[9]; + getPropertyValue + (((PropertyValue[]) instance), "FilterService"); } catch (com.sun.star.container.NoSuchElementException e){ throw new StatusException( Status.failed("Couldn't get elements from object")); diff --git a/qadevOOo/tests/java/mod/_remotebridge/various.java b/qadevOOo/tests/java/mod/_remotebridge/various.java index 04f4a24349d0..c2c11c076320 100644 --- a/qadevOOo/tests/java/mod/_remotebridge/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge/various.java @@ -126,8 +126,6 @@ public class various extends TestCase { */ public Exception ex = null ; private XAcceptor acc = null ; - private XInstanceProvider xInstProv = null ; - private XBridgeFactory xBrdgFctr = null; /** * If method call returns some value it stores in this field. */ @@ -140,8 +138,6 @@ public class various extends TestCase { public AcceptorThread(XAcceptor acc, XInstanceProvider xInstProv, XBridgeFactory xBrdgFctr) { this.acc = acc ; - this.xInstProv = xInstProv; - this.xBrdgFctr = xBrdgFctr; } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java index 2b7714422ff1..3ba57ae9dc77 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java @@ -186,24 +186,16 @@ public class ScDataPilotFieldGroupItemObj extends TestCase throw new StatusException ("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition (1, 5); + oSheet.getCellByPosition (1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition (x, y); - aChangeValue = new Integer (27); + oSheet.getCellByPosition (x, y); + new Integer (27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java index 2fc1fa4f5bda..1a92045be7c2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java @@ -185,24 +185,16 @@ public class ScDataPilotFieldGroupObj extends TestCase throw new StatusException ("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition (1, 5); + oSheet.getCellByPosition (1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition (x, y); - aChangeValue = new Integer (27); + oSheet.getCellByPosition (x, y); + new Integer (27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java index 7899d586b068..97294117d99c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java @@ -185,24 +185,16 @@ public class ScDataPilotFieldGroupsObj extends TestCase throw new StatusException ("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition (1, 5); + oSheet.getCellByPosition (1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition (x, y); - aChangeValue = new Integer (27); + oSheet.getCellByPosition (x, y); + new Integer (27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java index 862cd89cf96a..226c7e2e50be 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java @@ -186,23 +186,15 @@ public class ScDataPilotFieldObj extends TestCase { throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java index 7bb82070f96c..217521d47c43 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java @@ -187,23 +187,15 @@ public class ScDataPilotItemObj extends TestCase { throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java index 804c3a255fe2..73fb3d94d046 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java @@ -187,23 +187,15 @@ public class ScDataPilotItemsObj extends TestCase { throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java index a63d9222a512..9930c0fa9e9e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java @@ -174,13 +174,11 @@ public class ScDatabaseRangeObj extends TestCase { //dbRanges.addNewByName("dbRange", aRange); XNameAccess dbrNA = UnoRuntime.queryInterface( XNameAccess.class, dbRanges); - XNamed xNamed = null; - try { // we need to add it dbRanges.addNewByName(dbName,new CellRangeAddress((short)0, 0, 0, 0, 5)); - xNamed = UnoRuntime.queryInterface(XNamed.class, + UnoRuntime.queryInterface(XNamed.class, dbrNA.getByName( dbName)); diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java index e8e5a7b097fd..2bc6d4a4811f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java @@ -189,23 +189,15 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration throw new StatusException("Couldn't fill some cells", e); } - // change a value of a cell and check the change in the data pilot - // (for the XDataPilotTable.refresh() test) - Object oChangeCell = null; - Object oCheckCell = null; - Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); + oSheet.getCellByPosition(1, 5); int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = new Integer(27); + oSheet.getCellByPosition(x, y); + new Integer(27); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(); throw new StatusException("Couldn't get cells for changeing.", e); diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java index bcf423f105ee..23c76dc98bd1 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java @@ -144,7 +144,7 @@ public class SdUnoOutlineView extends TestCase { XDrawPagesSupplier oDPS = UnoRuntime.queryInterface(XDrawPagesSupplier.class, xImpressDoc); XDrawPages the_pages = oDPS.getDrawPages(); - XIndexAccess oDPi = UnoRuntime.queryInterface(XIndexAccess.class,the_pages); + UnoRuntime.queryInterface(XIndexAccess.class,the_pages); XModel aModel = UnoRuntime.queryInterface(XModel.class, xImpressDoc); diff --git a/qadevOOo/tests/java/mod/_stm/Pipe.java b/qadevOOo/tests/java/mod/_stm/Pipe.java index e3c869aec22d..afdf554e469e 100644 --- a/qadevOOo/tests/java/mod/_stm/Pipe.java +++ b/qadevOOo/tests/java/mod/_stm/Pipe.java @@ -89,7 +89,6 @@ public class Pipe extends TestCase { tEnv.addObjRelation("XOutputStream.StreamChecker", new ifc.io._XOutputStream.StreamChecker() { - XInputStream inStream = null; public void resetStreams() { } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java index b0e0401a2331..3028e0020802 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java @@ -162,7 +162,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase { XInterface oObj = null; - final XInitialization xInit = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XInitialization.class, the_frame2.getController()); PropertyValue[] params = new PropertyValue[3]; diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java index f07bf5dd3191..db3c0bbe739c 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java @@ -185,8 +185,6 @@ public class AccessibleBrowseBoxTable extends TestCase { XSelectionSupplier.class, xCont); - final Object[] initArgs = params; - XInterface oObj = null; AccessibilityTools at = new AccessibilityTools(); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java index 754f74884502..a2c0ee0bf6ee 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java @@ -159,7 +159,7 @@ public class AccessibleBrowseBoxTableCell extends TestCase { XInterface oObj = null; - final XInitialization xInit = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XInitialization.class, the_frame2.getController()); Object[] params = new Object[3]; diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java index a83aa2689c30..83dd22756976 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java @@ -190,7 +190,7 @@ public class AccessibleTreeListBoxEntry extends TestCase { XInterface oObj = null; - XInitialization xInit = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XInitialization.class, the_frame2.getController()); diff --git a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java index 68dddf1fc7ac..d86d5bcb829e 100644 --- a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java +++ b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java @@ -88,7 +88,7 @@ public class ParagraphStyle extends TestCase { oSFNA = UnoRuntime.queryInterface( XNameAccess.class,oSF.getByName("ParagraphStyles")); XIndexAccess oSFIA = UnoRuntime.queryInterface(XIndexAccess.class, oSFNA); - String[] els = oSFNA.getElementNames(); + oSFNA.getElementNames(); oStyle = UnoRuntime.queryInterface( XStyle.class,oSFIA.getByIndex(1)); } catch ( com.sun.star.lang.WrappedTargetException e ) { diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java index 4364ad03dfe9..3dc8e9e2ac09 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java @@ -75,8 +75,6 @@ public class SwAccessiblePageView extends TestCase { XInterface port = null; XInterface para = null; XPropertySet paraP = null; - XPropertySet portP = null; - XText oText = xTextDoc.getText(); XTextCursor oCursor = oText.createTextCursor(); @@ -125,7 +123,7 @@ public class SwAccessiblePageView extends TestCase { } try { - portP = UnoRuntime.queryInterface(XPropertySet.class, port); + UnoRuntime.queryInterface(XPropertySet.class, port); paraP = UnoRuntime.queryInterface(XPropertySet.class, para); paraP.setPropertyValue("BreakType",com.sun.star.style.BreakType.PAGE_AFTER); } catch ( com.sun.star.lang.WrappedTargetException e ) { diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java index afa7c6ab6123..b37512167a85 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java +++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java @@ -122,9 +122,6 @@ public class SwXAutoTextEntry extends TestCase { XAutoTextEntry oEntry = null; XAutoTextContainer oContainer; XInterface oObj = null; - int n = 0; - int nCount = 0; - log.println( "creating a test environment" ); try { XMultiServiceFactory myMSF = (XMultiServiceFactory)Param.getMSF(); diff --git a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java index a57fd9d6b21a..1601497815b2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java +++ b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java @@ -74,7 +74,6 @@ public class SwXMailMerge extends TestCase { XInterface oObj = null; XInterface oRowSet = null; - Object oConnection = null; XJob Job = null; log.println(" instantiate MailMerge service"); @@ -304,14 +303,12 @@ public class SwXMailMerge extends TestCase { log.println("create remote connection"); String databaseName = null ; - XDataSource oXDataSource = null; - Object oInterface = null; XMultiServiceFactory xMSF = null ; int uniqueSuffix = Param.getInt("uniqueSuffix"); try { xMSF = (XMultiServiceFactory)Param.getMSF(); - oInterface = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); + xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); // retrieving temp directory for database String tmpDatabaseUrl = utils.getOfficeTempDir((XMultiServiceFactory)Param.getMSF()); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java index 97700079e63e..45cb0a88241c 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java @@ -120,7 +120,6 @@ public class SwXTextPortionEnumeration extends TestCase { XEnumerationAccess oEnumA = UnoRuntime.queryInterface( XEnumerationAccess.class, oText ); XEnumeration oEnum = oEnumA.createEnumeration(); - int n = 0; while ( (oEnum.hasMoreElements()) ) { try { param = (XInterface) AnyConverter.toObject( @@ -130,7 +129,6 @@ public class SwXTextPortionEnumeration extends TestCase { e.printStackTrace(); throw new StatusException( "Couldn't get Paragraph", e ); } - n++; } XEnumerationAccess oEnumP = UnoRuntime.queryInterface( XEnumerationAccess.class, param ); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java index 6ec4eb7ffc9c..3be2b9dc1414 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java @@ -65,8 +65,6 @@ import util.utils; */ public class AccessibleDropDownListBox extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; - /** * Finds AccessibleDropDownListBox walking through the * accessible component tree of a writer document. diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java index 4f88a2ccf515..034f015c7c09 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java @@ -68,8 +68,6 @@ import util.utils; * @see ifc.accessibility._XAccessibleText */ public class AccessibleFixedText extends TestCase { - private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; private static XWindow xWinDlg = null; /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java index 6a644754b8c8..77e6bec67faa 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java @@ -76,8 +76,6 @@ import util.utils; */ public class AccessibleMenu extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; - /** * Finds accessible component with role <code>MENU</code> * walking through the accessible component tree of a document. diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java index 2ef80e46a4a2..8de7b62e9fa9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java @@ -66,8 +66,6 @@ import util.utils; */ public class AccessibleMenuBar extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; - /** * Finds accessible component with role <code>MENUBAR</code> * walking through the accessible component tree of a document. diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java index 990c5eca843a..b0e77d926b77 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java @@ -73,7 +73,6 @@ import util.utils; */ public class AccessibleMenuItem extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; private static XMultiServiceFactory msf = null; /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java index 68bbc21bfc7e..3b306eba08a2 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java @@ -64,7 +64,6 @@ import util.utils; */ public class AccessibleMenuSeparator extends TestCase { private static XTextDocument xTextDoc = null; - private static XAccessibleAction action = null; private static XMultiServiceFactory msf = null; /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java index 9b5ef49c81e0..949739325122 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java @@ -48,7 +48,6 @@ import util.SOfficeFactory; public class AccessiblePopupMenu extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static Point point; @@ -56,7 +55,7 @@ public class AccessiblePopupMenu extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java index b346eb1076cb..870bfad95f4a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java @@ -84,7 +84,6 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleText */ public class AccessibleRadioButton extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static XAccessibleAction accCloseButton; @@ -93,7 +92,7 @@ public class AccessibleRadioButton extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java index ba9ce4ee6d9e..fa55b1f20578 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java @@ -73,14 +73,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleAction */ public class AccessibleScrollBar extends TestCase { - private static XDesktop the_Desk; private static XComponent xDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java index 85f77a8e1c8d..d3e932988f01 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java @@ -151,7 +151,7 @@ public class AccessibleStatusBar extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - final XExtendedToolkit tk = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XExtendedToolkit.class, toolkit); tEnv.addObjRelation("EventProducer", diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java index 7ee8dafc7181..0c5b5d586c50 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java @@ -73,14 +73,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleAction */ public class AccessibleStatusBarItem extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java index 01a7ab25e91c..819984ea1394 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java @@ -79,7 +79,6 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleSelection */ public class AccessibleTabControl extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static XAccessibleAction accCloseButton = null; @@ -87,7 +86,7 @@ public class AccessibleTabControl extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java index bd5f29f57b93..ea3ff9eb89f1 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java @@ -76,7 +76,6 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleExtendedComponent */ public class AccessibleTabPage extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; private static XAccessibleAction accCloseButton = null; @@ -84,7 +83,7 @@ public class AccessibleTabPage extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -246,7 +245,7 @@ public class AccessibleTabPage extends TestCase { XAccessibleComponent accComp = UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); - final Point point = accComp.getLocationOnScreen(); + accComp.getLocationOnScreen(); shortWait(); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java index f634a024ef5e..58f217772f20 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java @@ -63,14 +63,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleExtendedComponent */ public class AccessibleToolBox extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java index 244a158894e7..9b4ac2952778 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java @@ -77,14 +77,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleValue */ public class AccessibleToolBoxItem extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java index d43c66b164a4..d3e1f8e69f58 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java @@ -79,14 +79,13 @@ import util.SOfficeFactory; * @see ifc.accessibility.XAccessibleValue */ public class AccessibleWindow extends TestCase { - private static XDesktop the_Desk; private static XTextDocument xTextDoc; /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = UnoRuntime.queryInterface(XDesktop.class, + UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java index 41fd13b6b435..c0b77dca48ef 100644 --- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java +++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java @@ -43,15 +43,11 @@ public class MutableTreeNode extends TestCase { private static XInterface oObj = null; private static XMutableTreeDataModel mXTreeDataModel; private static XMultiServiceFactory mxMSF; - private static PrintWriter log; - private static boolean debug = false; /** * Creates StarOffice Writer document. */ protected void initialize(TestParameters tParam, PrintWriter log) { - this.log = log; - debug = tParam.getBool(PropertyName.DEBUG_IS_ACTIVE); mxMSF = (XMultiServiceFactory) tParam.getMSF(); // log.println("creating a textdocument"); // xTextDoc = WriterTools.createTextDoc(mxMSF); @@ -120,7 +116,7 @@ public class MutableTreeNode extends TestCase { if( xNode.getChildCount() == 0 ) { - String sParentPath = (String) xNode.getDataValue(); + xNode.getDataValue(); String officeUserPath = utils.getOfficeUserPath(mxMSF); Object fileacc = null; @@ -129,7 +125,7 @@ public class MutableTreeNode extends TestCase { } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(); } - XSimpleFileAccess sA = UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); + UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); dirlist(officeUserPath, xNode); @@ -149,7 +145,7 @@ public class MutableTreeNode extends TestCase { try { xChildNode = mXTreeDataModel.createNode(dir.substring(dir.lastIndexOf("/")+1, dir.length()), sfa.isFolder(dir)); xChildNode.setDataValue(dir); - boolean test = sfa.isFolder(dir); + sfa.isFolder(dir); if (sfa.isFolder(dir)){ xChildNode.setExpandedGraphicURL( "private:graphicrepository/sd/res/triangle_down.png"); xChildNode.setCollapsedGraphicURL("private:graphicrepository/sd/res/triangle_right.png"); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java index 1d8f50e365f8..3087387ce11a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java @@ -151,7 +151,7 @@ public class UnoControlDialogModel extends TestCase { log.println("creating a new environment for object"); - XMultiServiceFactory oMSF = UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XMultiServiceFactory.class, oObj); TestEnvironment tEnv = new TestEnvironment(oObj); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java index 57b15539be4e..a3dad60c3522 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java @@ -66,7 +66,7 @@ public class UnoScrollBarControl extends TestCase { XFrame xFrame = xModel.getCurrentController().getFrame(); XWindow xWin = xFrame.getContainerWindow(); - Toolkit tk = Toolkit.getDefaultToolkit(); + Toolkit.getDefaultToolkit(); Dimension dim = new Dimension(800, 600); Rectangle newPosSize = xWin.getPosSize(); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java index 570e12d588c8..e40fa35723d9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java @@ -53,22 +53,16 @@ import util.utils; public class UnoTreeControl extends TestCase { - private static XTextDocument xTextDoc; private static XMutableTreeDataModel mXTreeDataModel; private static XMultiServiceFactory mxMSF; - private static PrintWriter log; - private static boolean debug = false; protected void initialize(TestParameters Param, PrintWriter log) { - this.log = log; - debug = Param.getBool(PropertyName.DEBUG_IS_ACTIVE); - SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF()); try { log.println("creating a textdocument"); - xTextDoc = SOF.createTextDoc(null); + SOF.createTextDoc(null); } catch (com.sun.star.uno.Exception e) { // Some exception occures.FAILED e.printStackTrace(log); @@ -210,7 +204,7 @@ public class UnoTreeControl extends TestCase { if( xNode.getChildCount() == 0 ) { - String sParentPath = (String) xNode.getDataValue(); + xNode.getDataValue(); String officeUserPath = utils.getOfficeUserPath(mxMSF); Object fileacc = null; @@ -219,7 +213,7 @@ public class UnoTreeControl extends TestCase { } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(); } - XSimpleFileAccess sA = UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); + UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); dirlist(officeUserPath, xNode); @@ -239,7 +233,7 @@ public class UnoTreeControl extends TestCase { try { xChildNode = mXTreeDataModel.createNode(dir.substring(dir.lastIndexOf("/")+1, dir.length()), sfa.isFolder(dir)); xChildNode.setDataValue(dir); - boolean test = sfa.isFolder(dir); + sfa.isFolder(dir); if (sfa.isFolder(dir)){ xChildNode.setExpandedGraphicURL( "private:graphicrepository/sd/res/triangle_down.png"); xChildNode.setCollapsedGraphicURL("private:graphicrepository/sd/res/triangle_right.png"); |