diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/sheet')
38 files changed, 55 insertions, 0 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_DataPilotField.java b/qadevOOo/tests/java/ifc/sheet/_DataPilotField.java index f16b968082f6..13debc4a32cd 100644 --- a/qadevOOo/tests/java/ifc/sheet/_DataPilotField.java +++ b/qadevOOo/tests/java/ifc/sheet/_DataPilotField.java @@ -40,6 +40,7 @@ public class _DataPilotField extends MultiPropertyTest { *This class is destined to custom test of property <code>SortInfo</code>. */ protected PropertyTester SortInfoTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { DataPilotFieldSortInfo sortInfo = new DataPilotFieldSortInfo(); sortInfo.Mode = com.sun.star.sheet.DataPilotFieldSortMode.MANUAL; @@ -66,6 +67,7 @@ public class _DataPilotField extends MultiPropertyTest { *This class is destined to custom test of property <code>LayoutInfo</code>. */ protected PropertyTester LayoutInfoTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { DataPilotFieldLayoutInfo layoutInfo = new DataPilotFieldLayoutInfo(); layoutInfo.LayoutMode = com.sun.star.sheet.DataPilotFieldLayoutMode.OUTLINE_SUBTOTALS_BOTTOM; @@ -91,6 +93,7 @@ public class _DataPilotField extends MultiPropertyTest { *This class is destined to custom test of property <code>AutoShowInfo</code>. */ protected PropertyTester AutoShowInfoTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { DataPilotFieldAutoShowInfo AutoShowInfo = new DataPilotFieldAutoShowInfo(); AutoShowInfo.DataField = "Col1"; @@ -116,6 +119,7 @@ public class _DataPilotField extends MultiPropertyTest { *This class is destined to custom test of property <code>Reference</code>. */ protected PropertyTester ReferenceTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { DataPilotFieldReference Reference = new DataPilotFieldReference(); Reference.ReferenceField="Col1"; diff --git a/qadevOOo/tests/java/ifc/sheet/_Scenario.java b/qadevOOo/tests/java/ifc/sheet/_Scenario.java index ce01ebf4d91d..48efe7a84bb6 100644 --- a/qadevOOo/tests/java/ifc/sheet/_Scenario.java +++ b/qadevOOo/tests/java/ifc/sheet/_Scenario.java @@ -24,6 +24,7 @@ import lib.MultiPropertyTest; public class _Scenario extends MultiPropertyTest { + @Override public void before() { oObj = UnoRuntime.queryInterface(XPropertySet.class, tEnv.getObjRelation( diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetLink.java b/qadevOOo/tests/java/ifc/sheet/_SheetLink.java index 8ab6e186e0b0..503d13a72864 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetLink.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetLink.java @@ -38,6 +38,7 @@ public class _SheetLink extends MultiPropertyTest { *This class is destined to custom test of property <code>Url</code>. */ protected PropertyTester UrlTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { String newValue = (String) ValueChanger.changePValue(oldValue); if ( !newValue.startsWith("file://") ) { @@ -59,6 +60,7 @@ public class _SheetLink extends MultiPropertyTest { *This class is destined to custom test of property <code>Filter</code>. */ protected PropertyTester FilterTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { return "StarCalc 4.0"; } diff --git a/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.java b/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.java index ef8810d4a9e1..369c592a1bcd 100644 --- a/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.java +++ b/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.java @@ -36,6 +36,7 @@ public class _Spreadsheet extends MultiPropertyTest { *This class is destined to custom test of property <code>PageStyle</code>. */ protected PropertyTester styleTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { String str = "Default"; String str2= "Report"; diff --git a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.java b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.java index b2a73a0b4533..e3b388b8dcbd 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.java +++ b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.java @@ -53,6 +53,7 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest { *This class is destined to custom test of property <code>NullDate</code>. */ protected PropertyTester DateTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { Date date = (Date) oldValue; Date newDate = new Date((short) (date.Day - 1), date.Month, @@ -66,10 +67,12 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest { *This class is destined to custom test of property <code>ForbiddenCharacters</code>. */ protected PropertyTester ChrTester = new PropertyTester() { + @Override protected Object getNewValue(String propName, Object oldValue) { return new ForbiddenChrTest(); } + @Override protected boolean compare(Object obj1, Object obj2) { Locale loc = new Locale("ru", "RU", ""); XForbiddenCharacters fc1 = UnoRuntime.queryInterface( diff --git a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.java b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.java index 5d3532a69617..5aa4994daf98 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.java +++ b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.java @@ -59,6 +59,7 @@ public class _SpreadsheetViewSettings extends MultiPropertyTest { /** * Forces environment recreation. */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java index 871c3d116e9a..fc21d22263c5 100644 --- a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java +++ b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java @@ -82,6 +82,7 @@ public class _TableAutoFormatField extends MultiPropertyTest { */ public void _CharFontName() { testProperty("CharFontName", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return "Courier".equals(old) ? "Times New Roman" : "Courier" ; } @@ -95,6 +96,7 @@ public class _TableAutoFormatField extends MultiPropertyTest { */ public void _CharLocale() { testProperty("CharLocale", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return old == null || ((Locale)old).Language == "de" ? new Locale("es", "ES", "") : new Locale("de", "DE", "") ; @@ -108,6 +110,7 @@ public class _TableAutoFormatField extends MultiPropertyTest { */ public void _ShadowFormat() { testProperty("ShadowFormat", new PropertyTester() { + @Override protected Object getNewValue(String p, Object old) { return old == null ? new com.sun.star.table.ShadowFormat() : super.getNewValue(p, old) ; diff --git a/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.java b/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.java index d12789cefae8..5d2d15dc6628 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.java +++ b/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.java @@ -72,6 +72,7 @@ public class _XActivationBroadcaster extends MultiMethodTest { tRes.tested("removeActivationEventListener()", !listenerCalled); } + @Override public void before() { xSpreadsheetView = UnoRuntime.queryInterface( XSpreadsheetView.class, diff --git a/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java b/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java index fde204d3ce6a..7fa5a7feccbd 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java @@ -165,6 +165,7 @@ public class _XArrayFormulaRange extends MultiMethodTest { /** * Forces environment recreation. */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCalculatable.java b/qadevOOo/tests/java/ifc/sheet/_XCalculatable.java index 7176d388d640..260b452b131c 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCalculatable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCalculatable.java @@ -35,6 +35,7 @@ public class _XCalculatable extends MultiMethodTest { * Get object relation: four cells with values and formulas. * @see mod._sc.ScModelObj */ + @Override public void before() { xCells = (XCell[])tEnv.getObjRelation("XCalculatable.Cells"); if (xCells == null || xCells.length != 3) @@ -45,6 +46,7 @@ public class _XCalculatable extends MultiMethodTest { /** * Restore begin setting */ + @Override public void after() { // reset to begin value oObj.enableAutomaticCalculation(bIsAutomaticCalculationEnabled); diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java index d0554788bd42..29705c6e84a9 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java @@ -65,6 +65,7 @@ public class _XCellRangesQuery extends MultiMethodTest { public static final int QUERYROWDIFFERENCES = 5; public static final int QUERYVISIBLECELLS = 6; + @Override protected void before() { oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET"); @@ -290,6 +291,7 @@ public class _XCellRangesQuery extends MultiMethodTest { /** * Forces environment recreation. */ + @Override protected void after() { if(bMakeEntriesAndDispose) { disposeEnvironment(); diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java b/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java index 6152d2c243ee..72e078e9c0cb 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java @@ -36,6 +36,7 @@ public class _XCellSeries extends MultiMethodTest { protected boolean forceFillAuto = false; + @Override protected void before() { oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET"); @@ -229,6 +230,7 @@ public class _XCellSeries extends MultiMethodTest { /** * Forces environment recreation. */ + @Override public void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java index 99d4856903cf..9fa571f48af6 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java @@ -67,6 +67,7 @@ public class _XDataPilotDescriptor extends MultiMethodTest { * Retrieves object relations. * @throws StatusException If one of relations not found. */ + @Override protected void before() { Integer amount = (Integer)tEnv.getObjRelation("FIELDSAMOUNT"); if (amount == null) throw new StatusException(Status.failed @@ -411,6 +412,7 @@ public class _XDataPilotDescriptor extends MultiMethodTest { /** * Recreates object(to back old orientations of the fields). */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.java index 959d752f5956..d6db10c87172 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.java @@ -53,6 +53,7 @@ public class _XDataPilotTable extends MultiMethodTest { XCell xCellForCheck = null; CellAddress OutputRange = null; + @Override protected void before() { xCellForChange = (XCell)tEnv.getObjRelation("CELLFORCHANGE"); xCellForCheck = (XCell)tEnv.getObjRelation("CELLFORCHECK"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java index ff8296aeefd3..9192a1ef38c8 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java @@ -70,6 +70,7 @@ public class _XDataPilotTable2 extends MultiMethodTest */ private class ResultCellFailure extends com.sun.star.uno.Exception {} + @Override protected void before() { Object o = tEnv.getObjRelation("DATAPILOTTABLE2"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.java index fa0ea9ad6584..820bd4413340 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.java @@ -54,6 +54,7 @@ public class _XDataPilotTables extends MultiMethodTest { * Retrieves object relations. * @throws StatusException If one of relations not found. */ + @Override protected void before() { oSheet = (XSpreadsheet)tEnv.getObjRelation("SHEET"); if (oSheet == null) throw new StatusException(Status.failed diff --git a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java index 9f1cea195609..f7ea1453c80e 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java @@ -64,6 +64,7 @@ public class _XDatabaseRange extends MultiMethodTest { * Retrieves object relations. * @throws StatusException If one of relations not found. */ + @Override protected void before() { oldCRA = (CellRangeAddress)tEnv.getObjRelation("DATAAREA"); if (oldCRA == null) { @@ -227,6 +228,7 @@ public class _XDatabaseRange extends MultiMethodTest { tRes.tested("setDataArea()", true); } + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.java b/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.java index 0996351fc09c..bba15dd95b95 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.java @@ -50,6 +50,7 @@ public class _XDocumentAuditing extends MultiMethodTest { String sheetName = null; Point pos = null; + @Override public void before() { Exception ex = null; // get two sheets @@ -126,6 +127,7 @@ public class _XDocumentAuditing extends MultiMethodTest { } } + @Override public void after() { // switch the automatic refresh back on PropertyValue[] props = new PropertyValue[1]; diff --git a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java index 9c5bb63e46df..484edfdd521c 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java +++ b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java @@ -43,6 +43,7 @@ public class _XEnhancedMouseClickBroadcaster extends MultiMethodTest { protected XEnhancedMouseClickHandler listener = new MyListener(); private XModel docModel = null; + @Override public void before() { docModel = UnoRuntime.queryInterface( XModel.class,tEnv.getObjRelation("FirstModel")); diff --git a/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.java b/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.java index 01d53899a034..7a41fc0603c0 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.java +++ b/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.java @@ -40,6 +40,7 @@ public class _XFormulaQuery extends MultiMethodTest { private int[] miExpectedDependentValues; private int[] miExpectedPrecedentValues; + @Override protected void before() { oSheet = (XSpreadsheet)tEnv.getObjRelation("SHEET"); @@ -181,6 +182,7 @@ public class _XFormulaQuery extends MultiMethodTest { /** * Forces environment recreation. */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java b/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java index d19a94cb85e5..c8c31ac79229 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java +++ b/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java @@ -37,6 +37,7 @@ public class _XGoalSeek extends MultiMethodTest { CellAddress aFormula = null; CellAddress aValue = null; + @Override public void before() { Exception ex = null; // get two sheets diff --git a/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.java b/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.java index 8aaede910f0b..4f51db581af4 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.java +++ b/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.java @@ -37,6 +37,7 @@ public class _XMultipleOperation extends MultiMethodTest { protected XSpreadsheet oSheet = null; boolean both = true; + @Override protected void before() { oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET"); @@ -167,6 +168,7 @@ public class _XMultipleOperation extends MultiMethodTest { /** * Restores initial component text. */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XNamedRange.java b/qadevOOo/tests/java/ifc/sheet/_XNamedRange.java index 63bf5515da8b..110a0b03f6bd 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XNamedRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XNamedRange.java @@ -191,6 +191,7 @@ public class _XNamedRange extends MultiMethodTest { /** * Forces object environment recreation. */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.java b/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.java index a1505b5138b2..78c867d69d04 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.java +++ b/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.java @@ -66,6 +66,7 @@ public class _XNamedRanges extends MultiMethodTest { * Retrieves object relations. * @throws StatusException If one of relations not found. */ + @Override protected void before() { oSheet = (XSpreadsheet)tEnv.getObjRelation("SHEET"); if (oSheet == null) throw new StatusException(Status.failed diff --git a/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.java b/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.java index 720b120afbda..476479edaecf 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.java +++ b/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.java @@ -34,6 +34,7 @@ public class _XPrintAreas extends MultiMethodTest { CellRangeAddress titleColumns; CellRangeAddress titleRows; + @Override public void before() { address = (CellRangeAddress)tEnv.getObjRelation("CellRangeAddress"); subaddress = (CellRangeAddress)tEnv.getObjRelation("CellRangeSubAddress"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java index 5fb682a45365..7a6b8e8d61a9 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java +++ b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java @@ -52,6 +52,7 @@ public class _XRangeSelection extends MultiMethodTest { public XRangeSelection oObj = null; MyRangeSelectionListener aListener = null; + @Override public void before() { aListener = new _XRangeSelection.MyRangeSelectionListener(log); // workaround for i34499 diff --git a/qadevOOo/tests/java/ifc/sheet/_XScenario.java b/qadevOOo/tests/java/ifc/sheet/_XScenario.java index 0c45d187f362..4860a7a2dba4 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XScenario.java +++ b/qadevOOo/tests/java/ifc/sheet/_XScenario.java @@ -31,6 +31,7 @@ public class _XScenario extends MultiMethodTest { String comment = null; boolean skipTest = false; + @Override public void before() { // testing a scenario containing the whole sheet does not make sense. // test is skipped until this interface is implemented somewhere else diff --git a/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java b/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java index 2a17173ab1f6..162121cf76e6 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java +++ b/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java @@ -26,6 +26,7 @@ import lib.MultiMethodTest; public class _XScenarioEnhanced extends MultiMethodTest { public XScenarioEnhanced oObj = null; + @Override public void before() { oObj = UnoRuntime.queryInterface( XScenarioEnhanced.class, diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java index a2084b65de9f..5be2edee32ce 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java @@ -46,6 +46,7 @@ public class _XSheetAuditing extends MultiMethodTest { XDrawPage xDrawPage = null; int elementCount = 0; + @Override public void before() { address = (CellAddress)tEnv.getObjRelation("XSheetAuditing.CellAddress"); precedentAddress = (CellAddress)tEnv.getObjRelation("XSheetAuditing.PrecedentCellAddress"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.java index bf9c813eae40..a852daf67fbd 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.java @@ -44,6 +44,7 @@ public class _XSheetCellRangeContainer extends MultiMethodTest { * After method called, the new array of structures 'CellRangeAddress' * is created. Then container is cleared. */ + @Override public void before() { for ( short i=0; i<=2; i++ ) { rAddr[i] = new CellRangeAddress(); @@ -189,6 +190,7 @@ public class _XSheetCellRangeContainer extends MultiMethodTest { /** * Forces environment recreation. */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.java b/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.java index 7c93e77ec7f4..fc631d909579 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.java @@ -120,6 +120,7 @@ public class _XSheetConditionalEntries extends MultiMethodTest { /** * Forces object environment recreation. */ + @Override protected void after() { this.disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.java b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.java index d35703041884..793635b0cf22 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.java @@ -36,6 +36,7 @@ public class _XSheetFilterable extends MultiMethodTest { protected XSpreadsheet oSheet; protected XSheetFilterDescriptor desc; + @Override protected void before() { oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.java b/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.java index 347ea628291c..8494525b40d5 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.java @@ -32,6 +32,7 @@ public class _XSheetLinkable extends MultiMethodTest { String linkUrl = null; String linkUrl2 = null; + @Override public void before() { // get a document for linking. linkUrl = (String)tEnv.getObjRelation("XSheetLinkable.LinkSheet"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java b/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java index 2b73249a12ef..7471ea4a6df4 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java @@ -36,6 +36,7 @@ public class _XSheetOutline extends MultiMethodTest { CellRangeAddress address = null; CellRangeAddress subaddress = null; + @Override public void before() { address = (CellRangeAddress)tEnv.getObjRelation("CellRangeAddress"); subaddress = (CellRangeAddress)tEnv.getObjRelation("CellRangeSubAddress"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.java b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.java index fd048dc9a984..fe7188b4fe38 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.java @@ -41,6 +41,7 @@ public class _XSpreadsheets extends MultiMethodTest { /** * Sets the unique number for the current test. */ + @Override protected synchronized void before() { uniqNumber = uniqCount++; } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.java b/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.java index d34f89f4403f..b84798e995a6 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.java @@ -33,6 +33,7 @@ public class _XSubTotalCalculatable extends MultiMethodTest { protected XSubTotalDescriptor desc; protected XSpreadsheet oSheet; + @Override protected void before() { oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.java index 9c1975856499..923beaa2103c 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.java @@ -62,6 +62,7 @@ public class _XSubTotalDescriptor extends MultiMethodTest { /** * Forces environment recreation. */ + @Override protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.java b/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.java index 7c8922b97f1d..3ff16306a7a2 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.java @@ -120,6 +120,7 @@ public class _XUsedAreaCursor extends MultiMethodTest { /** * Forces object environment recreation. */ + @Override protected void after() { this.disposeEnvironment(); } |