[Libreoffice-commits] core.git: qadevOOo/runner qadevOOo/tests sc/qa unotest/source
Noel Grandin
noel at peralex.com
Thu Jun 11 05:52:47 PDT 2015
qadevOOo/runner/base/TestBase.java | 2
qadevOOo/runner/base/java_fat.java | 635 ++++------
qadevOOo/runner/base/java_fat_service.java | 2
qadevOOo/runner/lib/MultiMethodTest.java | 2
qadevOOo/runner/lib/TestCase.java | 4
qadevOOo/runner/org/openoffice/Runner.java | 4
qadevOOo/runner/org/openoffice/RunnerService.java | 10
qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java | 21
qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java | 2
qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java | 2
qadevOOo/tests/java/mod/_connector/uno/Connector.java | 2
qadevOOo/tests/java/mod/_connectr/Connector.java | 2
qadevOOo/tests/java/mod/_corefl/CoreReflection.java | 8
qadevOOo/tests/java/mod/_corereflection/uno/CoreReflection.java | 8
qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java | 8
qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java | 8
qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java | 2
qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java | 2
qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java | 7
qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java | 12
qadevOOo/tests/java/mod/_forms/GenericModelTest.java | 2
qadevOOo/tests/java/mod/_forms/OButtonControl.java | 13
qadevOOo/tests/java/mod/_forms/OButtonModel.java | 2
qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java | 14
qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java | 2
qadevOOo/tests/java/mod/_forms/OComboBoxControl.java | 13
qadevOOo/tests/java/mod/_forms/OComboBoxModel.java | 2
qadevOOo/tests/java/mod/_forms/OCurrencyControl.java | 13
qadevOOo/tests/java/mod/_forms/OCurrencyModel.java | 2
qadevOOo/tests/java/mod/_forms/ODatabaseForm.java | 2
qadevOOo/tests/java/mod/_forms/ODateControl.java | 13
qadevOOo/tests/java/mod/_forms/ODateModel.java | 2
qadevOOo/tests/java/mod/_forms/OEditControl.java | 13
qadevOOo/tests/java/mod/_forms/OEditModel.java | 2
qadevOOo/tests/java/mod/_forms/OFileControlModel.java | 13
qadevOOo/tests/java/mod/_forms/OFixedTextModel.java | 2
qadevOOo/tests/java/mod/_forms/OFormattedControl.java | 13
qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java | 2
qadevOOo/tests/java/mod/_forms/OFormsCollection.java | 2
qadevOOo/tests/java/mod/_forms/OGridControlModel.java | 13
qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java | 13
qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java | 2
qadevOOo/tests/java/mod/_forms/OHiddenModel.java | 13
qadevOOo/tests/java/mod/_forms/OImageButtonControl.java | 13
qadevOOo/tests/java/mod/_forms/OImageButtonModel.java | 2
qadevOOo/tests/java/mod/_forms/OImageControlControl.java | 13
qadevOOo/tests/java/mod/_forms/OImageControlModel.java | 2
qadevOOo/tests/java/mod/_forms/OListBoxControl.java | 14
qadevOOo/tests/java/mod/_forms/OListBoxModel.java | 2
qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java | 13
qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java | 2
qadevOOo/tests/java/mod/_forms/ONumericControl.java | 13
qadevOOo/tests/java/mod/_forms/ONumericModel.java | 2
qadevOOo/tests/java/mod/_forms/OPatternControl.java | 13
qadevOOo/tests/java/mod/_forms/OPatternModel.java | 2
qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java | 13
qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java | 2
qadevOOo/tests/java/mod/_forms/OScrollBarModel.java | 2
qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java | 2
qadevOOo/tests/java/mod/_forms/OTimeControl.java | 13
qadevOOo/tests/java/mod/_forms/OTimeModel.java | 2
qadevOOo/tests/java/mod/_fwk/JobExecutor.java | 123 -
qadevOOo/tests/java/mod/_i18n/BreakIterator.java | 15
qadevOOo/tests/java/mod/_pcr/ObjectInspector.java | 6
qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java | 6
qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java | 5
qadevOOo/tests/java/mod/_regtypeprov/uno/RegistryTypeDescriptionProvider.java | 5
qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java | 15
qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java | 15
qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java | 2
qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java | 2
qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java | 2
qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.java | 18
qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java | 20
qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java | 12
qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java | 12
qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java | 13
qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java | 2
qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java | 13
qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.java | 12
qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java | 15
qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.java | 23
qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java | 15
qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java | 15
qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.java | 15
qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java | 15
qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java | 14
qadevOOo/tests/java/mod/_sc/ScCellCursorObj.java | 13
qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java | 15
qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java | 15
qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java | 13
qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java | 14
qadevOOo/tests/java/mod/_sc/ScCellObj.java | 14
qadevOOo/tests/java/mod/_sc/ScCellRangeObj.java | 13
qadevOOo/tests/java/mod/_sc/ScCellRangesObj.java | 15
qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java | 14
qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java | 15
qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScCellsObj.java | 15
qadevOOo/tests/java/mod/_sc/ScChartObj.java | 14
qadevOOo/tests/java/mod/_sc/ScChartsObj.java | 14
qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.java | 14
qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java | 15
qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java | 15
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java | 16
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java | 16
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java | 16
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java | 13
qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java | 14
qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java | 13
qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java | 13
qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java | 15
qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java | 15
qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java | 13
qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java | 15
qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.java | 13
qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java | 14
qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java | 14
qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java | 15
qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java | 15
qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java | 15
qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.java | 15
qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java | 15
qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java | 15
qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java | 14
qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java | 14
qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java | 13
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java | 12
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java | 12
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java | 17
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java | 14
qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java | 15
qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java | 14
qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java | 14
qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java | 14
qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.java | 14
qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java | 14
qadevOOo/tests/java/mod/_sc/ScScenariosObj.java | 13
qadevOOo/tests/java/mod/_sc/ScShapeObj.java | 15
qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java | 13
qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java | 14
qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.java | 15
qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java | 14
qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java | 13
qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java | 14
qadevOOo/tests/java/mod/_sc/ScStyleObj.java | 14
qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java | 16
qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java | 16
qadevOOo/tests/java/mod/_sc/ScTabViewObj.java | 19
qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java | 14
qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java | 14
qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java | 14
qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java | 14
qadevOOo/tests/java/mod/_sc/ScTableRowObj.java | 14
qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java | 13
qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java | 13
qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java | 12
qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java | 14
qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java | 13
qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java | 13
qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java | 15
qadevOOo/tests/java/mod/_sc/XMLContentExporter.java | 14
qadevOOo/tests/java/mod/_sc/XMLContentImporter.java | 17
qadevOOo/tests/java/mod/_sc/XMLExporter.java | 13
qadevOOo/tests/java/mod/_sc/XMLImporter.java | 17
qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java | 13
qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java | 17
qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java | 13
qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java | 17
qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java | 14
qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java | 17
qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java | 13
qadevOOo/tests/java/mod/_sch/ChXChartAxis.java | 14
qadevOOo/tests/java/mod/_sch/ChXChartData.java | 13
qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java | 14
qadevOOo/tests/java/mod/_sch/ChXChartView.java | 14
qadevOOo/tests/java/mod/_sch/ChXDataPoint.java | 18
qadevOOo/tests/java/mod/_sch/ChXDataRow.java | 18
qadevOOo/tests/java/mod/_sch/ChXDiagram.java | 14
qadevOOo/tests/java/mod/_sch/ChartArea.java | 18
qadevOOo/tests/java/mod/_sch/ChartGrid.java | 14
qadevOOo/tests/java/mod/_sch/ChartLegend.java | 18
qadevOOo/tests/java/mod/_sch/ChartLine.java | 14
qadevOOo/tests/java/mod/_sch/ChartTitle.java | 14
qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java | 13
qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.java | 14
qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java | 12
qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java | 2
qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java | 2
qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java | 2
qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java | 2
qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java | 13
qadevOOo/tests/java/mod/_sd/SdDrawPage.java | 14
qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java | 12
qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.java | 13
qadevOOo/tests/java/mod/_sd/SdLayer.java | 13
qadevOOo/tests/java/mod/_sd/SdLayerManager.java | 14
qadevOOo/tests/java/mod/_sd/SdMasterPage.java | 13
qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.java | 13
qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.java | 14
qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java | 2
qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java | 2
qadevOOo/tests/java/mod/_sd/SdUnoPresView.java | 2
qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java | 2
qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java | 15
qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java | 14
qadevOOo/tests/java/mod/_sd/SdXPresentation.java | 13
qadevOOo/tests/java/mod/_sd/SdXShape.java | 12
qadevOOo/tests/java/mod/_sfx/DocumentTemplates.java | 2
qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java | 8
qadevOOo/tests/java/mod/_sm/XMLExporter.java | 12
qadevOOo/tests/java/mod/_sm/XMLImporter.java | 10
qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java | 13
qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java | 10
qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java | 13
qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java | 10
qadevOOo/tests/java/mod/_stm/ObjectInputStream.java | 37
qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java | 36
qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java | 36
qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java | 36
qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java | 2
qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java | 2
qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java | 18
qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java | 14
qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java | 18
qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java | 16
qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java | 18
qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java | 18
qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java | 18
qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java | 18
qadevOOo/tests/java/mod/_svx/AccessibleShape.java | 16
qadevOOo/tests/java/mod/_svx/GraphicExporter.java | 2
qadevOOo/tests/java/mod/_svx/SvxDrawPage.java | 13
qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java | 13
qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java | 2
qadevOOo/tests/java/mod/_svx/SvxShape.java | 15
qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java | 17
qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java | 14
qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java | 14
qadevOOo/tests/java/mod/_svx/SvxShapeControl.java | 14
qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java | 14
qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java | 124 -
qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java | 16
qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java | 16
qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java | 2
qadevOOo/tests/java/mod/_svx/SvxUnoText.java | 13
qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java | 13
qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java | 12
qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java | 12
qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java | 14
qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java | 13
qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java | 13
qadevOOo/tests/java/mod/_sw/CharacterStyle.java | 12
qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java | 11
qadevOOo/tests/java/mod/_sw/PageStyle.java | 12
qadevOOo/tests/java/mod/_sw/ParagraphStyle.java | 12
qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java | 2
qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java | 2
qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java | 12
qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java | 12
qadevOOo/tests/java/mod/_sw/SwXBodyText.java | 11
qadevOOo/tests/java/mod/_sw/SwXBookmark.java | 12
qadevOOo/tests/java/mod/_sw/SwXBookmarks.java | 11
qadevOOo/tests/java/mod/_sw/SwXCell.java | 11
qadevOOo/tests/java/mod/_sw/SwXCellRange.java | 12
qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java | 11
qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java | 12
qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java | 12
qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java | 12
qadevOOo/tests/java/mod/_sw/SwXDrawPage.java | 11
qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java | 12
qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java | 11
qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java | 11
qadevOOo/tests/java/mod/_sw/SwXFootnote.java | 12
qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java | 12
qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java | 12
qadevOOo/tests/java/mod/_sw/SwXFootnotes.java | 12
qadevOOo/tests/java/mod/_sw/SwXFrames.java | 12
qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java | 12
qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java | 11
qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java | 12
qadevOOo/tests/java/mod/_sw/SwXParagraph.java | 8
qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java | 11
qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java | 12
qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java | 12
qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java | 12
qadevOOo/tests/java/mod/_sw/SwXShape.java | 11
qadevOOo/tests/java/mod/_sw/SwXStyle.java | 12
qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java | 11
qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java | 12
qadevOOo/tests/java/mod/_sw/SwXTableCellText.java | 11
qadevOOo/tests/java/mod/_sw/SwXTableColumns.java | 11
qadevOOo/tests/java/mod/_sw/SwXTableRows.java | 11
qadevOOo/tests/java/mod/_sw/SwXTextColumns.java | 12
qadevOOo/tests/java/mod/_sw/SwXTextCursor.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java | 12
qadevOOo/tests/java/mod/_sw/SwXTextDocument.java | 4
qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java | 11
qadevOOo/tests/java/mod/_sw/SwXTextField.java | 14
qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java | 12
qadevOOo/tests/java/mod/_sw/SwXTextFrame.java | 14
qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextPortion.java | 14
qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextRange.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextRanges.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextSearch.java | 14
qadevOOo/tests/java/mod/_sw/SwXTextSection.java | 12
qadevOOo/tests/java/mod/_sw/SwXTextSections.java | 14
qadevOOo/tests/java/mod/_sw/SwXTextTable.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java | 12
qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextTables.java | 13
qadevOOo/tests/java/mod/_sw/SwXTextView.java | 15
qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java | 13
qadevOOo/tests/java/mod/_sw/SwXViewSettings.java | 13
qadevOOo/tests/java/mod/_sw/XMLContentExporter.java | 13
qadevOOo/tests/java/mod/_sw/XMLContentImporter.java | 13
qadevOOo/tests/java/mod/_sw/XMLExporter.java | 13
qadevOOo/tests/java/mod/_sw/XMLImporter.java | 13
qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java | 14
qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java | 13
qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java | 15
qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java | 13
qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java | 13
qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java | 13
qadevOOo/tests/java/mod/_tcv/TypeConverter.java | 5
qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java | 5
qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java | 4
qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java | 16
qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleList.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java | 6
qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java | 13
qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java | 2
qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java | 2
qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java | 2
qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java | 2
qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java | 2
qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java | 2
qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java | 17
qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java | 2
qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java | 2
qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java | 2
qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java | 2
qadevOOo/tests/java/mod/_toolkit/TabController.java | 15
qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java | 13
qadevOOo/tests/java/mod/_toolkit/Toolkit.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java | 17
qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java | 17
qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java | 19
qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java | 17
qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java | 40
qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java | 2
qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java | 13
qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java | 2
qadevOOo/tests/java/mod/_typeconverter/uno/TypeConverter.java | 5
qadevOOo/tests/java/mod/_typemgr/uno/TypeDescriptionManager.java | 5
qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java | 12
qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java | 12
qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java | 13
qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java | 14
qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java | 15
sc/qa/complex/cellRanges/CheckXCellRangesQuery.java | 166 +-
sc/qa/complex/dataPilot/CheckDataPilot.java | 146 --
unotest/source/java/org/openoffice/test/UnoApiTest.java | 2
457 files changed, 1748 insertions(+), 4497 deletions(-)
New commits:
commit 3bd57cc2c0cabf33799edc57d3dd1c90c7857ecd
Author: Noel Grandin <noel at peralex.com>
Date: Tue Jun 9 15:24:08 2015 +0200
java:remove more unnecessary catch/re-throw
Change-Id: Id9a13c7f4ae0fd53c95c551544e60af44bb3fb95
Reviewed-on: https://gerrit.libreoffice.org/16203
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/qadevOOo/runner/base/TestBase.java b/qadevOOo/runner/base/TestBase.java
index 0e4d947..9fd0b2d 100644
--- a/qadevOOo/runner/base/TestBase.java
+++ b/qadevOOo/runner/base/TestBase.java
@@ -25,6 +25,6 @@ import lib.TestParameters;
*/
public interface TestBase {
- boolean executeTest(TestParameters param);
+ boolean executeTest(TestParameters param) throws Exception;
}
diff --git a/qadevOOo/runner/base/java_fat.java b/qadevOOo/runner/base/java_fat.java
index bc63f40..c5c1476 100644
--- a/qadevOOo/runner/base/java_fat.java
+++ b/qadevOOo/runner/base/java_fat.java
@@ -42,8 +42,7 @@ import com.sun.star.lang.XMultiServiceFactory;
*
* this class handles tests written in java and running on a fat Office
*/
-public class java_fat implements TestBase
-{
+public class java_fat implements TestBase {
private boolean logging = true;
private DynamicClassLoader m_aDynamicClassLoader = null;
@@ -51,273 +50,244 @@ public class java_fat implements TestBase
private lib.TestParameters m_aParams;
private AppProvider m_aOffice;
- public boolean executeTest(lib.TestParameters _aParams)
- {
- m_aParams = _aParams;
+ public boolean executeTest(lib.TestParameters _aParams) throws Exception {
+ m_aParams = _aParams;
+
+ m_aDynamicClassLoader = new DynamicClassLoader();
+
+ DescGetter dg = new APIDescGetter();
+ String job = (String) m_aParams.get("TestJob");
+ String ExclusionFile = (String) m_aParams.get("ExclusionList");
+ ArrayList<String> exclusions = null;
+ boolean retValue = true;
+ boolean isDebug = m_aParams.getBool("DebugIsActive");
+ logging = m_aParams.getBool("LoggingIsActive");
+ boolean keepdocument = m_aParams.getBool("KeepDocument");
+ boolean newOffice = m_aParams
+ .getBool(util.PropertyName.NEW_OFFICE_INSTANCE);
+ if (keepdocument) {
+ System.setProperty("KeepDocument", "true");
+ }
+ if (ExclusionFile != null) {
+ exclusions = getExclusionList(ExclusionFile, isDebug);
+ }
- m_aDynamicClassLoader = new DynamicClassLoader();
+ String sDescriptionPath = (String) m_aParams.get("DescriptionPath");
+ DescEntry[] entries = dg.getDescriptionFor(job, sDescriptionPath,
+ isDebug);
- DescGetter dg = new APIDescGetter();
- String job = (String) m_aParams.get("TestJob");
- String ExclusionFile = (String) m_aParams.get("ExclusionList");
- ArrayList<String> exclusions = null;
- boolean retValue = true;
- boolean isDebug = m_aParams.getBool("DebugIsActive");
- logging = m_aParams.getBool("LoggingIsActive");
- boolean keepdocument = m_aParams.getBool("KeepDocument");
- boolean newOffice = m_aParams.getBool(util.PropertyName.NEW_OFFICE_INSTANCE);
- if (keepdocument)
- {
- System.setProperty("KeepDocument", "true");
- }
- if (ExclusionFile != null)
- {
- exclusions = getExclusionList(ExclusionFile, isDebug);
- }
+ if (entries == null) {
+ System.out.println("Couldn't get Description for Job: " + job);
- String sDescriptionPath = (String) m_aParams.get("DescriptionPath");
- DescEntry[] entries = dg.getDescriptionFor(job, sDescriptionPath, isDebug);
+ return false;
+ }
- if (entries == null)
- {
- System.out.println("Couldn't get Description for Job: " + job);
+ m_aOffice = startOffice(m_aParams);
- return false;
- }
+ boolean firstRun = true;
- m_aOffice = startOffice(m_aParams);
+ // Run through all entries (e.g. sw.SwXBookmark.*)
- boolean firstRun = true;
+ for (int l = 0; l < entries.length; l++) {
+ DescEntry entry = entries[l];
- // Run through all entries (e.g. sw.SwXBookmark.*)
+ if (entry == null) {
+ continue;
+ }
- for (int l = 0; l < entries.length; l++)
- {
- DescEntry entry = entries[l];
+ if (entry.hasErrorMsg) {
+ System.out.println(entries[l].ErrorMsg);
+ retValue = false;
+ continue;
+ }
- if (entry == null)
- {
- continue;
+ if (!firstRun && newOffice) {
+ if (!m_aOffice.closeExistingOffice(m_aParams, true)) {
+ m_aOffice.disposeManager(m_aParams);
}
+ startOffice(m_aParams);
+ }
+ firstRun = false;
- if (entry.hasErrorMsg)
- {
- System.out.println(entries[l].ErrorMsg);
- retValue = false;
- continue;
- }
+ XMultiServiceFactory msf = m_aParams.getMSF();
- if (!firstRun && newOffice)
- {
- if (!m_aOffice.closeExistingOffice(m_aParams, true))
- {
- m_aOffice.disposeManager(m_aParams);
- }
- startOffice(m_aParams);
- }
- firstRun = false;
+ if (msf == null) {
+ retValue = false;
+ continue;
+ }
- XMultiServiceFactory msf = m_aParams.getMSF();
+ // get some helper classes
+ Summarizer sumIt = new Summarizer();
+ TestCase tCase = getTestCase(entry);
+ if (tCase == null) {
+ continue;
+ }
- if (msf == null)
- {
- retValue = false;
- continue;
- }
+ util.utils.pause(2000);
- //get some helper classes
- Summarizer sumIt = new Summarizer();
- TestCase tCase = getTestCase(entry);
- if (tCase == null)
- {
- continue;
- }
+ System.out.println("Creating: " + entry.entryName);
- util.utils.pause(2000);
+ LogWriter log = (LogWriter) m_aDynamicClassLoader
+ .getInstance((String) m_aParams.get("LogWriter"));
+ log.initialize(entry, logging);
+ entry.UserDefinedParams = m_aParams;
- System.out.println("Creating: " + entry.entryName);
+ tCase.setLogWriter((PrintWriter) log);
+ tCase.initializeTestCase(m_aParams);
- LogWriter log = (LogWriter) m_aDynamicClassLoader.getInstance((String) m_aParams.get("LogWriter"));
- log.initialize(entry, logging);
- entry.UserDefinedParams = m_aParams;
+ TestEnvironment tEnv = getTestEnvironment(tCase, entry);
+ if (tEnv == null) {
+ continue;
+ }
- tCase.setLogWriter((PrintWriter) log);
- tCase.initializeTestCase(m_aParams);
+ tCase.getObjectName();
- TestEnvironment tEnv = getTestEnvironment(tCase, entry);
- if (tEnv == null)
- {
+ for (int j = 0; j < entry.SubEntryCount; j++) {
+ DescEntry aSubEntry = entry.SubEntries[j];
+ final boolean bIsToTest = aSubEntry.isToTest;
+ if (!bIsToTest) {
+ Summarizer.summarizeDown(aSubEntry, "not part of the job");
continue;
}
- tCase.getObjectName();
+ final String sLongEntryName = aSubEntry.longName;
- for (int j = 0; j < entry.SubEntryCount; j++)
- {
- DescEntry aSubEntry = entry.SubEntries[j];
- final boolean bIsToTest = aSubEntry.isToTest;
- if (!bIsToTest)
- {
- Summarizer.summarizeDown(aSubEntry, "not part of the job");
- continue;
- }
+ if ((exclusions != null)
+ && (exclusions.contains(sLongEntryName))) {
+ Summarizer.summarizeDown(aSubEntry, "known issue");
+ continue;
+ }
- final String sLongEntryName = aSubEntry.longName;
+ // this will shown in test itself
- if ((exclusions != null) && (exclusions.contains(sLongEntryName)))
- {
- Summarizer.summarizeDown(aSubEntry, "known issue");
- continue;
- }
+ LogWriter ifclog = (LogWriter) m_aDynamicClassLoader
+ .getInstance((String) m_aParams.get("LogWriter"));
- // this will shown in test itself
+ ifclog.initialize(aSubEntry, logging);
+ aSubEntry.UserDefinedParams = m_aParams;
+ aSubEntry.Logger = ifclog;
- LogWriter ifclog = (LogWriter) m_aDynamicClassLoader.getInstance( (String) m_aParams.get("LogWriter"));
-
- ifclog.initialize(aSubEntry, logging);
- aSubEntry.UserDefinedParams = m_aParams;
- aSubEntry.Logger = ifclog;
+ if (tEnv.isDisposed()) {
+ closeExistingOffice();
+ tEnv = getEnv(entry, m_aParams);
+ tCase = tEnv.getTestCase();
+ }
- if (tEnv.isDisposed())
- {
+ lib.TestResult res = null;
+
+ // run the interface test twice if it failed.
+ int countInterfaceTestRun = 0;
+ boolean finished = false;
+ while (!finished) {
+ try {
+ countInterfaceTestRun++;
+ finished = true;
+ res = executeInterfaceTest(aSubEntry, tEnv, m_aParams);
+ } catch (IllegalArgumentException iae) {
+ System.out.println("Couldn't load class "
+ + aSubEntry.entryName);
+ System.out
+ .println("**** " + iae.getMessage() + " ****");
+ Summarizer.summarizeDown(aSubEntry, iae.getMessage());
+ } catch (java.lang.NoClassDefFoundError iae) {
+ System.out.println("Couldn't load class "
+ + aSubEntry.entryName);
+ System.out
+ .println("**** " + iae.getMessage() + " ****");
+ Summarizer.summarizeDown(aSubEntry, iae.getMessage());
+ } catch (java.lang.RuntimeException e) {
closeExistingOffice();
tEnv = getEnv(entry, m_aParams);
tCase = tEnv.getTestCase();
- }
-
- lib.TestResult res = null;
-
- // run the interface test twice if it failed.
- int countInterfaceTestRun = 0;
- boolean finished = false;
- while (!finished)
- {
- try
- {
- countInterfaceTestRun++;
- finished = true;
- res = executeInterfaceTest(aSubEntry, tEnv, m_aParams);
- }
- catch (IllegalArgumentException iae)
- {
- System.out.println("Couldn't load class " + aSubEntry.entryName);
- System.out.println("**** " + iae.getMessage() + " ****");
- Summarizer.summarizeDown(aSubEntry, iae.getMessage());
- }
- catch (java.lang.NoClassDefFoundError iae)
- {
- System.out.println("Couldn't load class " + aSubEntry.entryName);
- System.out.println("**** " + iae.getMessage() + " ****");
- Summarizer.summarizeDown(aSubEntry, iae.getMessage());
- }
- catch (java.lang.RuntimeException e)
- {
- closeExistingOffice();
- tEnv = getEnv(entry, m_aParams);
- tCase = tEnv.getTestCase();
- if (countInterfaceTestRun < 2)
- {
- finished = false;
- }
- else
- {
- Summarizer.summarizeDown(aSubEntry, e.toString() + ".FAILED");
- }
+ if (countInterfaceTestRun < 2) {
+ finished = false;
+ } else {
+ Summarizer.summarizeDown(aSubEntry, e.toString()
+ + ".FAILED");
}
}
- setState(aSubEntry, res);
+ }
+ setState(aSubEntry, res);
- sumIt.summarizeUp(aSubEntry);
+ sumIt.summarizeUp(aSubEntry);
- LogWriter sumIfc = OutProducerFactory.createOutProducer(m_aParams);
- aSubEntry.UserDefinedParams = m_aParams;
- sumIfc.initialize(aSubEntry, logging);
- sumIfc.summary(aSubEntry);
- }
+ LogWriter sumIfc = OutProducerFactory
+ .createOutProducer(m_aParams);
+ aSubEntry.UserDefinedParams = m_aParams;
+ sumIfc.initialize(aSubEntry, logging);
+ sumIfc.summary(aSubEntry);
+ }
- try
- {
- if (!keepdocument)
- {
- tCase.cleanupTestCase(m_aParams);
- }
- }
- catch (Exception e)
- {
- System.err.println( "couldn't cleanup:" + e.toString() );
+ try {
+ if (!keepdocument) {
+ tCase.cleanupTestCase(m_aParams);
}
- catch (java.lang.NoClassDefFoundError e)
- {
- System.err.println( "couldn't cleanup:" + e.toString() );
- }
-
- sumIt.summarizeUp(entry);
+ } catch (Exception e) {
+ System.err.println("couldn't cleanup:" + e.toString());
+ } catch (java.lang.NoClassDefFoundError e) {
+ System.err.println("couldn't cleanup:" + e.toString());
+ }
- LogWriter sumObj = OutProducerFactory.createOutProducer(m_aParams);
+ sumIt.summarizeUp(entry);
- sumObj.initialize(entry, logging);
- sumObj.summary(entry);
- }
+ LogWriter sumObj = OutProducerFactory.createOutProducer(m_aParams);
- if (entries.length > 0)
- {
- System.out.println();
+ sumObj.initialize(entry, logging);
+ sumObj.summary(entry);
+ }
- int counter = 0;
- System.out.println("Failures that appeared during scenario execution:");
+ if (entries.length > 0) {
+ System.out.println();
- for (int i = 0; i < entries.length; i++)
- {
- final String sState = entries[i].State;
- if (!sState.endsWith("OK"))
- {
- System.out.println("\t " + entries[i].longName);
- counter++;
- }
- }
+ int counter = 0;
+ System.out
+ .println("Failures that appeared during scenario execution:");
- System.out.println(counter + " of " + entries.length + " tests failed");
- if (counter != 0) {
- retValue = false;
+ for (int i = 0; i < entries.length; i++) {
+ final String sState = entries[i].State;
+ if (!sState.endsWith("OK")) {
+ System.out.println("\t " + entries[i].longName);
+ counter++;
}
}
- closeExistingOffice();
- return retValue;
+ System.out.println(counter + " of " + entries.length
+ + " tests failed");
+ if (counter != 0) {
+ retValue = false;
+ }
}
+ closeExistingOffice();
+ return retValue;
+ }
- private TestEnvironment getTestEnvironment(TestCase tCase, DescEntry entry)
- {
+ private TestEnvironment getTestEnvironment(TestCase tCase, DescEntry entry) {
TestEnvironment tEnv = null;
- try
- {
+ try {
tEnv = tCase.getTestEnvironment(m_aParams);
- }
- catch (Exception e)
- {
- System.out.println("Exception while creating " + tCase.getObjectName());
+ } catch (Exception e) {
+ System.out.println("Exception while creating "
+ + tCase.getObjectName());
System.out.println("Message " + e.getMessage());
e.printStackTrace();
tEnv = null;
- }
- catch (java.lang.UnsatisfiedLinkError e)
- {
- System.out.println("Exception while creating " + tCase.getObjectName());
+ } catch (java.lang.UnsatisfiedLinkError e) {
+ System.out.println("Exception while creating "
+ + tCase.getObjectName());
System.out.println("Message " + e.getMessage());
tEnv = null;
- }
- catch (java.lang.NoClassDefFoundError e)
- {
- System.out.println("Exception while creating " + tCase.getObjectName());
+ } catch (java.lang.NoClassDefFoundError e) {
+ System.out.println("Exception while creating "
+ + tCase.getObjectName());
System.out.println("Message " + e.getMessage());
tEnv = null;
}
- if (tEnv == null)
- {
- Summarizer.summarizeDown(entry, "Couldn't create " + tCase.getObjectName());
+ if (tEnv == null) {
+ Summarizer.summarizeDown(entry,
+ "Couldn't create " + tCase.getObjectName());
LogWriter sumObj = OutProducerFactory.createOutProducer(m_aParams);
entry.UserDefinedParams = m_aParams;
@@ -327,27 +297,21 @@ public class java_fat implements TestBase
return tEnv;
}
- private TestCase getTestCase(DescEntry _aEntry)
- {
+ private TestCase getTestCase(DescEntry _aEntry) {
TestCase tCase = null;
- try
- {
- tCase = (TestCase) m_aDynamicClassLoader.getInstance("mod._" + _aEntry.entryName);
- }
- catch (java.lang.IllegalArgumentException ie)
- {
+ try {
+ tCase = (TestCase) m_aDynamicClassLoader.getInstance("mod._"
+ + _aEntry.entryName);
+ } catch (java.lang.IllegalArgumentException ie) {
_aEntry.ErrorMsg = ie.getMessage();
_aEntry.hasErrorMsg = true;
- }
- catch (java.lang.NoClassDefFoundError ie)
- {
+ } catch (java.lang.NoClassDefFoundError ie) {
_aEntry.ErrorMsg = ie.getMessage();
_aEntry.hasErrorMsg = true;
}
- if (tCase == null)
- {
+ if (tCase == null) {
Summarizer.summarizeDown(_aEntry, _aEntry.ErrorMsg);
LogWriter sumObj = OutProducerFactory.createOutProducer(m_aParams);
@@ -356,175 +320,144 @@ public class java_fat implements TestBase
sumObj.summary(_aEntry);
}
return tCase;
-}
+ }
- private void setState(DescEntry aSubEntry, lib.TestResult res)
- {
- if (res != null)
- {
- for (int k = 0; k < aSubEntry.SubEntryCount; k++)
- {
+ private void setState(DescEntry aSubEntry, lib.TestResult res) {
+ if (res != null) {
+ for (int k = 0; k < aSubEntry.SubEntryCount; k++) {
DescEntry aSubSubEntry = aSubEntry.SubEntries[k];
- if (res.hasMethod( aSubSubEntry.entryName))
- {
- aSubSubEntry.State = res.getStatusFor(aSubSubEntry.entryName).toString();
+ if (res.hasMethod(aSubSubEntry.entryName)) {
+ aSubSubEntry.State = res.getStatusFor(
+ aSubSubEntry.entryName).toString();
}
}
}
}
- private TestEnvironment getEnv(DescEntry entry, TestParameters param)
- {
- TestCase tCase = null;
+ private TestEnvironment getEnv(DescEntry entry, TestParameters param) throws Exception {
+ TestCase tCase = null;
- try
- {
- tCase = (TestCase) m_aDynamicClassLoader.getInstance("mod._" + entry.entryName);
- }
- catch (java.lang.IllegalArgumentException ie)
- {
- entry.ErrorMsg = ie.getMessage();
- entry.hasErrorMsg = true;
- }
- catch (java.lang.NoClassDefFoundError ie)
- {
- entry.ErrorMsg = ie.getMessage();
- entry.hasErrorMsg = true;
- }
+ try {
+ tCase = (TestCase) m_aDynamicClassLoader.getInstance("mod._"
+ + entry.entryName);
+ } catch (java.lang.IllegalArgumentException ie) {
+ entry.ErrorMsg = ie.getMessage();
+ entry.hasErrorMsg = true;
+ } catch (java.lang.NoClassDefFoundError ie) {
+ entry.ErrorMsg = ie.getMessage();
+ entry.hasErrorMsg = true;
+ }
- System.out.println("Creating: " + entry.entryName);
+ System.out.println("Creating: " + entry.entryName);
- entry.UserDefinedParams = param;
+ entry.UserDefinedParams = param;
- LogWriter log = (LogWriter) m_aDynamicClassLoader.getInstance((String) param.get("LogWriter"));
- log.initialize(entry, logging);
- tCase.setLogWriter((PrintWriter) log);
+ LogWriter log = (LogWriter) m_aDynamicClassLoader
+ .getInstance((String) param.get("LogWriter"));
+ log.initialize(entry, logging);
+ tCase.setLogWriter((PrintWriter) log);
- try
- {
- tCase.initializeTestCase(param);
- return tCase.getTestEnvironment(param);
- }
- catch (com.sun.star.lang.DisposedException de)
- {
- System.out.println("Office disposed");
- closeExistingOffice();
- throw de;
- }
- catch (lib.StatusException e)
- {
- System.out.println(e.getMessage());
+ try {
+ tCase.initializeTestCase(param);
+ return tCase.getTestEnvironment(param);
+ } catch (com.sun.star.lang.DisposedException de) {
+ System.out.println("Office disposed");
+ closeExistingOffice();
+ throw de;
+ } catch (Exception e) {
+ System.out.println(e.getMessage());
- closeExistingOffice();
+ closeExistingOffice();
- entry.ErrorMsg = e.getMessage();
- entry.hasErrorMsg = true;
- throw e;
- }
+ entry.ErrorMsg = e.getMessage();
+ entry.hasErrorMsg = true;
+ throw e;
}
+ }
- private void closeExistingOffice()
- {
- helper.ProcessHandler ph = (helper.ProcessHandler) m_aParams.get("AppProvider");
-
- if (ph != null)
- {
- m_aOffice.closeExistingOffice(m_aParams, true);
- util.utils.pause(5000);
- }
+ private void closeExistingOffice() {
+ helper.ProcessHandler ph = (helper.ProcessHandler) m_aParams
+ .get("AppProvider");
+ if (ph != null) {
+ m_aOffice.closeExistingOffice(m_aParams, true);
+ util.utils.pause(5000);
}
- private ArrayList<String> getExclusionList(String url, boolean debug)
- {
- ArrayList<String> entryList = new ArrayList<String>();
- String line = "#";
- BufferedReader exclusion = null;
+ }
- try
- {
- exclusion = new BufferedReader(new FileReader(url));
- }
- catch (java.io.FileNotFoundException fnfe)
- {
- if (debug)
- {
- System.out.println("Couldn't find file " + url);
- }
+ private ArrayList<String> getExclusionList(String url, boolean debug) {
+ ArrayList<String> entryList = new ArrayList<String>();
+ String line = "#";
+ BufferedReader exclusion = null;
- return entryList;
+ try {
+ exclusion = new BufferedReader(new FileReader(url));
+ } catch (java.io.FileNotFoundException fnfe) {
+ if (debug) {
+ System.out.println("Couldn't find file " + url);
}
- try
- {
- while (line != null)
- {
- try
- {
- if (!line.startsWith("#") && (line.length() > 1))
- {
- entryList.add(line.trim());
- }
+ return entryList;
+ }
- line = exclusion.readLine();
+ try {
+ while (line != null) {
+ try {
+ if (!line.startsWith("#") && (line.length() > 1)) {
+ entryList.add(line.trim());
}
- catch (java.io.IOException ioe)
- {
- if (debug)
- {
- System.out.println("Exception while reading exclusion list");
- }
- return entryList;
+ line = exclusion.readLine();
+ } catch (java.io.IOException ioe) {
+ if (debug) {
+ System.out
+ .println("Exception while reading exclusion list");
}
+
+ return entryList;
}
}
- finally
- {
- try
- {
- exclusion.close();
- }
- catch (java.io.IOException ioe)
- {
- }
+ } finally {
+ try {
+ exclusion.close();
+ } catch (java.io.IOException ioe) {
}
-
- return entryList;
}
- private TestResult executeInterfaceTest(
- DescEntry entry, TestEnvironment tEnv, TestParameters param)
- throws IllegalArgumentException, java.lang.NoClassDefFoundError
- {
- MultiMethodTest ifc = (MultiMethodTest) m_aDynamicClassLoader.getInstance(entry.entryName);
- return ifc.run(entry, tEnv, param);
- }
-
- private AppProvider startOffice(lib.TestParameters param)
- {
+ return entryList;
+ }
- if (m_aDynamicClassLoader == null)
- {
- m_aDynamicClassLoader = new DynamicClassLoader();
- }
+ private TestResult executeInterfaceTest(DescEntry entry,
+ TestEnvironment tEnv, TestParameters param)
+ throws IllegalArgumentException, java.lang.NoClassDefFoundError {
+ MultiMethodTest ifc = (MultiMethodTest) m_aDynamicClassLoader
+ .getInstance(entry.entryName);
+ return ifc.run(entry, tEnv, param);
+ }
- String officeProviderName = (String) param.get("OfficeProvider");
- AppProvider office = (AppProvider) m_aDynamicClassLoader.getInstance(officeProviderName);
+ private AppProvider startOffice(lib.TestParameters param) {
+ if (m_aDynamicClassLoader == null) {
+ m_aDynamicClassLoader = new DynamicClassLoader();
+ }
- if (office == null)
- {
- System.out.println("ERROR: Wrong parameter 'OfficeProvider', " + " it cannot be instantiated.");
- System.exit(-1);
- }
+ String officeProviderName = (String) param.get("OfficeProvider");
+ AppProvider office = (AppProvider) m_aDynamicClassLoader
+ .getInstance(officeProviderName);
- XMultiServiceFactory msf = (XMultiServiceFactory) office.getManager(param);
+ if (office == null) {
+ System.out.println("ERROR: Wrong parameter 'OfficeProvider', "
+ + " it cannot be instantiated.");
+ System.exit(-1);
+ }
- if (msf != null)
- {
- param.put("ServiceFactory", msf);
- }
+ XMultiServiceFactory msf = (XMultiServiceFactory) office
+ .getManager(param);
- return office;
+ if (msf != null) {
+ param.put("ServiceFactory", msf);
}
+
+ return office;
+ }
}
diff --git a/qadevOOo/runner/base/java_fat_service.java b/qadevOOo/runner/base/java_fat_service.java
index 485eec7..5a254af 100644
--- a/qadevOOo/runner/base/java_fat_service.java
+++ b/qadevOOo/runner/base/java_fat_service.java
@@ -231,7 +231,7 @@ public class java_fat_service implements TestBase {
} catch (com.sun.star.lang.DisposedException de) {
log.println("Office disposed");
}
- } catch (java.lang.IllegalArgumentException ie) {
+ } catch (java.lang.Exception ie) {
entry.ErrorMsg=ie.getMessage();
entry.hasErrorMsg=true;
}
diff --git a/qadevOOo/runner/lib/MultiMethodTest.java b/qadevOOo/runner/lib/MultiMethodTest.java
index ab2dd96..96adacd 100644
--- a/qadevOOo/runner/lib/MultiMethodTest.java
+++ b/qadevOOo/runner/lib/MultiMethodTest.java
@@ -243,7 +243,7 @@ public class MultiMethodTest
* Is called before calling method tests, but after initialization.
* Subclasses may override to perform actions before method tests.
*/
- protected void before()
+ protected void before() throws Exception
{
}
diff --git a/qadevOOo/runner/lib/TestCase.java b/qadevOOo/runner/lib/TestCase.java
index 3a3d7e9..e68eff6 100644
--- a/qadevOOo/runner/lib/TestCase.java
+++ b/qadevOOo/runner/lib/TestCase.java
@@ -63,7 +63,7 @@ public abstract class TestCase {
*
* @param tParam test parameters.
*/
- public final void initializeTestCase( TestParameters tParam ) {
+ public final void initializeTestCase( TestParameters tParam ) throws Exception {
initialize( tParam, log );
}
@@ -77,7 +77,7 @@ public abstract class TestCase {
*
* @see #initializeTestCase
*/
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
}
diff --git a/qadevOOo/runner/org/openoffice/Runner.java b/qadevOOo/runner/org/openoffice/Runner.java
index c7ee6dc..05fdb6b 100644
--- a/qadevOOo/runner/org/openoffice/Runner.java
+++ b/qadevOOo/runner/org/openoffice/Runner.java
@@ -136,7 +136,7 @@ public class Runner
}
}
- public static boolean run(String... args)
+ public static boolean run(String... args) throws Exception
{
System.out.println("OOoRunner Main() version from 20101118 (yyyymmdd)");
@@ -189,7 +189,7 @@ public class Runner
return worked;
}
- public static void main(String[] args)
+ public static void main(String[] args) throws Exception
{
System.exit(run(args) ? 0 : -1);
}
diff --git a/qadevOOo/runner/org/openoffice/RunnerService.java b/qadevOOo/runner/org/openoffice/RunnerService.java
index 9240f6e..f61638c 100644
--- a/qadevOOo/runner/org/openoffice/RunnerService.java
+++ b/qadevOOo/runner/org/openoffice/RunnerService.java
@@ -94,9 +94,13 @@ public class RunnerService implements XJob, XServiceInfo,
TestBase toExecute = (TestBase)dcl.getInstance("base.java_fat_service");
- boolean worked = toExecute.executeTest(param);
- if (!worked)
- log.println("Test did not execute correctly.");
+ try {
+ boolean worked = toExecute.executeTest(param);
+ if (!worked)
+ log.println("Test did not execute correctly.");
+ } catch (Exception ex) {
+ throw new RuntimeException(ex);
+ }
String returnString = "";
if (log instanceof InternalLogWriter)
diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java
index fd6858c..cb799d6 100644
--- a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java
+++ b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java
@@ -73,23 +73,16 @@ public class _XDispatchRecorderSupplier extends MultiMethodTest {
* service created for obtaining document's frame.
*/
@Override
- protected void before() {
+ protected void before() throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory(tParam.getMSF());
- try {
- log.println( "creating a text document" );
- xTextDoc = SOF.createTextDoc(null);
-
- Object inst = tParam.getMSF().createInstance
- ("com.sun.star.frame.Desktop");
- desktop = UnoRuntime.queryInterface
- (XDesktop.class, inst);
- } catch ( com.sun.star.uno.Exception e ) {
- // Some exception occurs.FAILED
- e.printStackTrace( log );
- throw new StatusException( "Couldn't create document", e );
- }
+ log.println( "creating a text document" );
+ xTextDoc = SOF.createTextDoc(null);
+ Object inst = tParam.getMSF().createInstance
+ ("com.sun.star.frame.Desktop");
+ desktop = UnoRuntime.queryInterface
+ (XDesktop.class, inst);
}
/**
diff --git a/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java
old mode 100644
new mode 100755
diff --git a/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java
old mode 100644
new mode 100755
diff --git a/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java b/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java
index c679d54..1957f9d 100644
--- a/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java
+++ b/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java
@@ -42,7 +42,7 @@ public class BridgeFactory extends TestCase {
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
diff --git a/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java b/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java
index c1b270f..1860e36 100644
--- a/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java
+++ b/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java
@@ -40,7 +40,7 @@ public class BridgeFactory extends TestCase {
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
diff --git a/qadevOOo/tests/java/mod/_connector/uno/Connector.java b/qadevOOo/tests/java/mod/_connector/uno/Connector.java
index 9e872a6..17b0c4e 100644
--- a/qadevOOo/tests/java/mod/_connector/uno/Connector.java
+++ b/qadevOOo/tests/java/mod/_connector/uno/Connector.java
@@ -51,7 +51,7 @@ public class Connector extends TestCase {
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
diff --git a/qadevOOo/tests/java/mod/_connectr/Connector.java b/qadevOOo/tests/java/mod/_connectr/Connector.java
index c2b9309..3128ef4 100644
--- a/qadevOOo/tests/java/mod/_connectr/Connector.java
+++ b/qadevOOo/tests/java/mod/_connectr/Connector.java
@@ -53,7 +53,7 @@ public class Connector extends TestCase {
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
diff --git a/qadevOOo/tests/java/mod/_corefl/CoreReflection.java b/qadevOOo/tests/java/mod/_corefl/CoreReflection.java
index 4363f2f..880a47c 100644
--- a/qadevOOo/tests/java/mod/_corefl/CoreReflection.java
+++ b/qadevOOo/tests/java/mod/_corefl/CoreReflection.java
@@ -40,14 +40,6 @@ import com.sun.star.uno.XInterface;
public class CoreReflection extends TestCase {
/**
- * Does nothing.
- */
- @Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
-
- }
-
- /**
* Creating a TestEnvironment for the interfaces to be tested.
* Creates <code>com.sun.star.reflection.CoreReflection</code> service.
*/
diff --git a/qadevOOo/tests/java/mod/_corereflection/uno/CoreReflection.java b/qadevOOo/tests/java/mod/_corereflection/uno/CoreReflection.java
index 029ae30..7b291e7 100644
--- a/qadevOOo/tests/java/mod/_corereflection/uno/CoreReflection.java
+++ b/qadevOOo/tests/java/mod/_corereflection/uno/CoreReflection.java
@@ -38,14 +38,6 @@ import lib.TestParameters;
public class CoreReflection extends TestCase {
/**
- * Does nothing.
- */
- @Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
-
- }
-
- /**
* Creating a TestEnvironment for the interfaces to be tested.
* Creates <code>com.sun.star.reflection.CoreReflection</code> service.
*/
diff --git a/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java b/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java
index 035068a..fa254bb 100644
--- a/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java
+++ b/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java
@@ -45,14 +45,6 @@ import com.sun.star.uno.XInterface;
public class DLLComponentLoader extends TestCase {
/**
- * Does nothing.
- */
- @Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
-
- }
-
- /**
* Creating a TestEnvironment for the interfaces to be tested.
* Creates <code>com.sun.star.comp.stoc.DLLComponentLoader</code>
* service. <p>
diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java
index ab5d55e..24b6985 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java
@@ -59,14 +59,6 @@ import util.utils;
public class ODatabaseContext extends TestCase {
/**
- * Does nothing.
- */
- @Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
-
- }
-
- /**
* Creating a TestEnvironment for the interfaces to be tested.
* Creates service <code>com.sun.star.sdb.DatabaseContext</code>.
* Needed object relations :
diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java
index aa20c34..4e5213a 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java
@@ -80,7 +80,7 @@ public class ODatabaseSource extends TestCase {
* on static field. For names differs in different object threads.
*/
@Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
+ protected void initialize ( TestParameters Param, PrintWriter log) throws Exception {
uniqueSuffix = uniqueSuffixStat++ ;
}
diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java
old mode 100644
new mode 100755
diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
index ca4fbcc..7736cdb 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
@@ -57,7 +57,7 @@ public class OQueryDesign extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
xDesk = UnoRuntime.queryInterface(
XDesktop.class, DesktopTools.createDesktop(Param.getMSF()) );
}
diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
index b3b58b2..105fcbd 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
@@ -20,7 +20,6 @@ package mod._dbaccess;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -142,12 +141,6 @@ public class OSingleSelectQueryComposer extends TestCase {
protected final static String dbSourceName = "OSingleSelectQueryComposerDataSource";
public XConnection conn = null;
- @Override
- protected void initialize(TestParameters Param, PrintWriter log)
- throws StatusException {
-
- }
-
/**
* Creating a TestEnvironment for the interfaces to be tested.
*
diff --git a/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java b/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java
index 9edd7b4..dafdd9e 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java
@@ -125,17 +125,11 @@ public class SbaXGridControl extends TestCase {
* Creates Writer document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF());
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java b/qadevOOo/tests/java/mod/_forms/GenericModelTest.java
index dbd25cf..38d148a 100644
--- a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java
+++ b/qadevOOo/tests/java/mod/_forms/GenericModelTest.java
@@ -214,7 +214,7 @@ public class GenericModelTest extends TestCase {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
log.println("creating a textdocument");
m_xTextDoc = WriterTools.createTextDoc((tParam.getMSF()));
m_ConnectionColsed = false;
diff --git a/qadevOOo/tests/java/mod/_forms/OButtonControl.java b/qadevOOo/tests/java/mod/_forms/OButtonControl.java
index 9d60483..82f9059 100644
--- a/qadevOOo/tests/java/mod/_forms/OButtonControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OButtonControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -83,17 +82,11 @@ public class OButtonControl extends TestCase {
* Creates a text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF());
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OButtonModel.java b/qadevOOo/tests/java/mod/_forms/OButtonModel.java
index 7913782..c54b241 100644
--- a/qadevOOo/tests/java/mod/_forms/OButtonModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OButtonModel.java
@@ -90,7 +90,7 @@ public class OButtonModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java b/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java
index 1b477d4..2bb3f35 100644
--- a/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java
@@ -20,7 +20,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -91,17 +90,10 @@ public class OCheckBoxControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
+ protected void initialize ( TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory( (Param.getMSF()) );
-
- try {
- log.println( "creating a textdocument" );
- xTextDoc = SOF.createTextDoc( null );
- } catch ( com.sun.star.uno.Exception e ) {
- // Some exception occurs.FAILED
- e.printStackTrace( log );
- throw new StatusException( "Couldn't create document", e );
- }
+ log.println( "creating a textdocument" );
+ xTextDoc = SOF.createTextDoc( null );
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java b/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java
index da579f8..edec240 100644
--- a/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java
@@ -105,7 +105,7 @@ public class OCheckBoxModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OComboBoxControl.java b/qadevOOo/tests/java/mod/_forms/OComboBoxControl.java
index a740b13..0109485 100644
--- a/qadevOOo/tests/java/mod/_forms/OComboBoxControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OComboBoxControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -95,17 +94,11 @@ public class OComboBoxControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OComboBoxModel.java b/qadevOOo/tests/java/mod/_forms/OComboBoxModel.java
index 571ba1b..963e996 100644
--- a/qadevOOo/tests/java/mod/_forms/OComboBoxModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OComboBoxModel.java
@@ -113,7 +113,7 @@ public class OComboBoxModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java b/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java
index 9f3d828..571401a 100644
--- a/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -95,17 +94,11 @@ public class OCurrencyControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF());
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OCurrencyModel.java b/qadevOOo/tests/java/mod/_forms/OCurrencyModel.java
index 9e54e48..fed0b5d 100644
--- a/qadevOOo/tests/java/mod/_forms/OCurrencyModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OCurrencyModel.java
@@ -108,7 +108,7 @@ public class OCurrencyModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
index 01bcbd7..d6f7015 100644
--- a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
+++ b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
@@ -228,7 +228,7 @@ public class ODatabaseForm extends TestCase {
private Object dbSrc = null;
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
tmpDir = utils.getOfficeTemp((tParam.getMSF()));
origDB = util.utils.getFullTestDocName("TestDB/testDB.dbf");
diff --git a/qadevOOo/tests/java/mod/_forms/ODateControl.java b/qadevOOo/tests/java/mod/_forms/ODateControl.java
index c8a2333..d80597b 100644
--- a/qadevOOo/tests/java/mod/_forms/ODateControl.java
+++ b/qadevOOo/tests/java/mod/_forms/ODateControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -94,17 +93,11 @@ public class ODateControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/ODateModel.java b/qadevOOo/tests/java/mod/_forms/ODateModel.java
index aad8154..0d4c758 100644
--- a/qadevOOo/tests/java/mod/_forms/ODateModel.java
+++ b/qadevOOo/tests/java/mod/_forms/ODateModel.java
@@ -123,7 +123,7 @@ public class ODateModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OEditControl.java b/qadevOOo/tests/java/mod/_forms/OEditControl.java
index f3f06ce..4b233ca 100644
--- a/qadevOOo/tests/java/mod/_forms/OEditControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OEditControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -95,17 +94,11 @@ public class OEditControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OEditModel.java b/qadevOOo/tests/java/mod/_forms/OEditModel.java
index 3a9bec8..b672cbd 100644
--- a/qadevOOo/tests/java/mod/_forms/OEditModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OEditModel.java
@@ -121,7 +121,7 @@ public class OEditModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OFileControlModel.java b/qadevOOo/tests/java/mod/_forms/OFileControlModel.java
index f16d708..247d56a 100644
--- a/qadevOOo/tests/java/mod/_forms/OFileControlModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OFileControlModel.java
@@ -19,8 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.Status;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -95,15 +93,10 @@ public class OFileControlModel extends TestCase {
* Creates Draw document where controls are placed.
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((tParam.getMSF()));
-
- try {
- log.println("creating a draw document");
- xDrawDoc = SOF.createDrawDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException(e, Status.failed("Can't create a document"));
- }
+ log.println("creating a draw document");
+ xDrawDoc = SOF.createDrawDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OFixedTextModel.java b/qadevOOo/tests/java/mod/_forms/OFixedTextModel.java
index 754df51..2b84691 100644
--- a/qadevOOo/tests/java/mod/_forms/OFixedTextModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OFixedTextModel.java
@@ -84,7 +84,7 @@ public class OFixedTextModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OFormattedControl.java b/qadevOOo/tests/java/mod/_forms/OFormattedControl.java
index cb812c5..9924e4c 100644
--- a/qadevOOo/tests/java/mod/_forms/OFormattedControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OFormattedControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -91,17 +90,11 @@ public class OFormattedControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java b/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java
index 2223ebc..4a53340 100644
--- a/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java
+++ b/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java
@@ -113,7 +113,7 @@ public class OFormattedFieldWrapper extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OFormsCollection.java b/qadevOOo/tests/java/mod/_forms/OFormsCollection.java
index 187f788..293fcbb 100644
--- a/qadevOOo/tests/java/mod/_forms/OFormsCollection.java
+++ b/qadevOOo/tests/java/mod/_forms/OFormsCollection.java
@@ -75,7 +75,7 @@ public class OFormsCollection extends TestCase {
* Creates Drawing document.
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
log.println("creating a draw document");
xDrawDoc = DrawTools.createDrawDoc((tParam.getMSF()));
}
diff --git a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java
index 456db16..6995574 100644
--- a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java
@@ -20,7 +20,6 @@ package mod._forms;
import java.io.PrintWriter;
import java.util.Comparator;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -140,7 +139,7 @@ public class OGridControlModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
@@ -229,16 +228,10 @@ class OGridControlModelold extends TestCase {
* Creates Drawing document.
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((tParam.getMSF()));
-
log.println("creating a draw document");
-
- try {
- xDrawDoc = SOF.createDrawDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException("Can't create Draw document", e);
- }
+ xDrawDoc = SOF.createDrawDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java b/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java
index 0423ddd..fd6f571 100644
--- a/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -73,17 +72,11 @@ public class OGroupBoxControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java b/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java
index 75de4dc..dcc810b 100644
--- a/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java
@@ -83,7 +83,7 @@ public class OGroupBoxModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OHiddenModel.java b/qadevOOo/tests/java/mod/_forms/OHiddenModel.java
index e8df1c4..7b64604 100644
--- a/qadevOOo/tests/java/mod/_forms/OHiddenModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OHiddenModel.java
@@ -20,7 +20,6 @@ package mod._forms;
import com.sun.star.beans.PropertyValue;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -91,17 +90,11 @@ public class OHiddenModel extends TestCase {
* Creates Drawing document.
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((tParam.getMSF()));
- try {
- log.println("creating a draw document");
- xDrawDoc = SOF.createDrawDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a draw document");
+ xDrawDoc = SOF.createDrawDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OImageButtonControl.java b/qadevOOo/tests/java/mod/_forms/OImageButtonControl.java
index bb7ce36..11e6731 100644
--- a/qadevOOo/tests/java/mod/_forms/OImageButtonControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OImageButtonControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -78,17 +77,11 @@ public class OImageButtonControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OImageButtonModel.java b/qadevOOo/tests/java/mod/_forms/OImageButtonModel.java
index 1529420..0c93ba7 100644
--- a/qadevOOo/tests/java/mod/_forms/OImageButtonModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OImageButtonModel.java
@@ -88,7 +88,7 @@ public class OImageButtonModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OImageControlControl.java b/qadevOOo/tests/java/mod/_forms/OImageControlControl.java
index e76af7e..a13246a 100644
--- a/qadevOOo/tests/java/mod/_forms/OImageControlControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OImageControlControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -79,17 +78,11 @@ public class OImageControlControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OImageControlModel.java b/qadevOOo/tests/java/mod/_forms/OImageControlModel.java
index fabfde6..174bcd5 100644
--- a/qadevOOo/tests/java/mod/_forms/OImageControlModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OImageControlModel.java
@@ -114,7 +114,7 @@ public class OImageControlModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OListBoxControl.java b/qadevOOo/tests/java/mod/_forms/OListBoxControl.java
index cd422b7..da867ae 100644
--- a/qadevOOo/tests/java/mod/_forms/OListBoxControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OListBoxControl.java
@@ -20,7 +20,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -47,17 +46,10 @@ public class OListBoxControl extends TestCase {
XTextDocument xTextDoc;
@Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
+ protected void initialize ( TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory( (Param.getMSF()) );
-
- try {
- log.println( "creating a textdocument" );
- xTextDoc = SOF.createTextDoc( null );
- } catch ( com.sun.star.uno.Exception e ) {
- // Some exception occurs.FAILED
- e.printStackTrace( log );
- throw new StatusException( "Couldn't create document", e );
- }
+ log.println( "creating a textdocument" );
+ xTextDoc = SOF.createTextDoc( null );
}
@Override
diff --git a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java b/qadevOOo/tests/java/mod/_forms/OListBoxModel.java
index 44b6daa..f482036 100644
--- a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OListBoxModel.java
@@ -128,7 +128,7 @@ public class OListBoxModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java b/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java
index a1e2d2a..cec4696 100644
--- a/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java
+++ b/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -48,17 +47,11 @@ public class ONavigationBarControl extends TestCase {
* Creates a text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF());
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java b/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java
index 89b81f6..030a9b0 100644
--- a/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java
+++ b/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java
@@ -36,7 +36,7 @@ public class ONavigationBarModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/ONumericControl.java b/qadevOOo/tests/java/mod/_forms/ONumericControl.java
index 8be6523..f8aa38d 100644
--- a/qadevOOo/tests/java/mod/_forms/ONumericControl.java
+++ b/qadevOOo/tests/java/mod/_forms/ONumericControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -94,17 +93,11 @@ public class ONumericControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/ONumericModel.java b/qadevOOo/tests/java/mod/_forms/ONumericModel.java
index 8b64054..23f26b0 100644
--- a/qadevOOo/tests/java/mod/_forms/ONumericModel.java
+++ b/qadevOOo/tests/java/mod/_forms/ONumericModel.java
@@ -111,7 +111,7 @@ public class ONumericModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/OPatternControl.java b/qadevOOo/tests/java/mod/_forms/OPatternControl.java
index 4b1f11d..80d4b5b 100644
--- a/qadevOOo/tests/java/mod/_forms/OPatternControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OPatternControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -94,17 +93,11 @@ public class OPatternControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OPatternModel.java b/qadevOOo/tests/java/mod/_forms/OPatternModel.java
index 65039cf..0bec8f4 100644
--- a/qadevOOo/tests/java/mod/_forms/OPatternModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OPatternModel.java
@@ -116,7 +116,7 @@ public class OPatternModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java b/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java
index 21e358b..7c7ea55 100644
--- a/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java
+++ b/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -82,17 +81,11 @@ public class ORadioButtonControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java b/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java
index 8b89364..be0b9f9 100644
--- a/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java
+++ b/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java
@@ -115,7 +115,7 @@ public class ORadioButtonModel extends GenericModelTest {
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
super.m_ChangePropertyName = "State";
diff --git a/qadevOOo/tests/java/mod/_forms/OScrollBarModel.java b/qadevOOo/tests/java/mod/_forms/OScrollBarModel.java
index f047635..76a951b 100644
--- a/qadevOOo/tests/java/mod/_forms/OScrollBarModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OScrollBarModel.java
@@ -39,7 +39,7 @@ public class OScrollBarModel extends TestCase {
* Creates Writer document.
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
log.println( "creating a textdocument" );
xTextDoc = WriterTools.createTextDoc((tParam.getMSF()));
diff --git a/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java b/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java
index 258a761..d586a84 100644
--- a/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java
@@ -39,7 +39,7 @@ public class OSpinButtonModel extends TestCase {
* Creates a Writer document.
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
log.println( "creating a textdocument" );
xTextDoc = WriterTools.createTextDoc((tParam.getMSF()));
diff --git a/qadevOOo/tests/java/mod/_forms/OTimeControl.java b/qadevOOo/tests/java/mod/_forms/OTimeControl.java
index 40c28b3..9e0486a 100644
--- a/qadevOOo/tests/java/mod/_forms/OTimeControl.java
+++ b/qadevOOo/tests/java/mod/_forms/OTimeControl.java
@@ -19,7 +19,6 @@ package mod._forms;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -95,17 +94,11 @@ public class OTimeControl extends TestCase {
* Creates a new text document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory((Param.getMSF()));
- try {
- log.println("creating a textdocument");
- xTextDoc = SOF.createTextDoc(null);
- } catch (com.sun.star.uno.Exception e) {
- // Some exception occurs.FAILED
- e.printStackTrace(log);
- throw new StatusException("Couldn't create document", e);
- }
+ log.println("creating a textdocument");
+ xTextDoc = SOF.createTextDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java
index 012899a..e937e6a 100644
--- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.java
@@ -126,7 +126,7 @@ public class OTimeModel extends GenericModelTest {
* @param log the log writer
*/
@Override
- protected void initialize(TestParameters tParam, PrintWriter log) {
+ protected void initialize(TestParameters tParam, PrintWriter log) throws Exception {
super.initialize(tParam, log);
diff --git a/qadevOOo/tests/java/mod/_fwk/JobExecutor.java b/qadevOOo/tests/java/mod/_fwk/JobExecutor.java
index 9bd5df7..7390e2c 100644
--- a/qadevOOo/tests/java/mod/_fwk/JobExecutor.java
+++ b/qadevOOo/tests/java/mod/_fwk/JobExecutor.java
@@ -99,46 +99,38 @@ public class JobExecutor extends TestCase {
* <code>(XMultiServiceFactory)SOLink.getMSF()</code> call.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
- boolean serviceRegistered = false;
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
boolean configured = false;
try {
- Object obj = Param.getMSF().createInstance("test.Job");
- serviceRegistered = obj != null;
- } catch(com.sun.star.uno.Exception e) {}
-
- log.println("Service test.Job is "
- + (serviceRegistered ? "already" : "not yet") + " registered.");
- if (! serviceRegistered){
+ Param.getMSF().createInstance("test.Job");
+ } catch(com.sun.star.uno.Exception e) {
+ log.println("Service test.Job is not yet registered.");
String message = "You have to register 'test.Job' before office is stared.\n";
message += "Please run '$OFFICEPATH/program/pkgchk $DOCPTH/qadevlibs/JobExecutor.jar'";
- throw new StatusException(message, new Exception());
+ throw new StatusException(message, e);
}
+
XNameAccess jobs = null;
XNameAccess events = null;
- try {
- Object obj = Param.getMSF().createInstance
- ("com.sun.star.configuration.ConfigurationProvider");
- XMultiServiceFactory xConfigMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, obj);
- PropertyValue[] args = new PropertyValue[1];
- args[0] = new PropertyValue();
- args[0].Name = "nodepath";
- args[0].Value = "org.openoffice.Office.Jobs";
- oRootCfg = xConfigMSF.createInstanceWithArguments(
- "com.sun.star.configuration.ConfigurationUpdateAccess", args);
- XHierarchicalNameAccess xHNA = UnoRuntime.queryInterface(XHierarchicalNameAccess.class, oRootCfg);
- obj = xHNA.getByHierarchicalName("Jobs");
- jobs = UnoRuntime.queryInterface
- (XNameAccess.class, obj);
- obj = xHNA.getByHierarchicalName("Events");
- events = UnoRuntime.queryInterface
- (XNameAccess.class, obj);
- } catch (Exception e) {
- throw new StatusException("Couldn't get configuration", e);
- }
+ Object obj = Param.getMSF().createInstance
+ ("com.sun.star.configuration.ConfigurationProvider");
+ XMultiServiceFactory xConfigMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, obj);
+ PropertyValue[] args = new PropertyValue[1];
+ args[0] = new PropertyValue();
+ args[0].Name = "nodepath";
+ args[0].Value = "org.openoffice.Office.Jobs";
+ oRootCfg = xConfigMSF.createInstanceWithArguments(
+ "com.sun.star.configuration.ConfigurationUpdateAccess", args);
+ XHierarchicalNameAccess xHNA = UnoRuntime.queryInterface(XHierarchicalNameAccess.class, oRootCfg);
+ obj = xHNA.getByHierarchicalName("Jobs");
+ jobs = UnoRuntime.queryInterface
+ (XNameAccess.class, obj);
+ obj = xHNA.getByHierarchicalName("Events");
+ events = UnoRuntime.queryInterface
+ (XNameAccess.class, obj);
configured = jobs.hasByName("TestJob") && events.hasByName("TestEvent");
@@ -146,45 +138,38 @@ public class JobExecutor extends TestCase {
+ (configured ? "already" : "not yet") + " configured.");
if (!configured) {
- try {
- log.println("Adding configuration to Jobs ...");
- XSingleServiceFactory jobsFac = UnoRuntime.queryInterface(XSingleServiceFactory.class, jobs);
- Object oNewJob = jobsFac.createInstance();
- XNameReplace xNewJobNR = UnoRuntime.queryInterface(XNameReplace.class, oNewJob);
- xNewJobNR.replaceByName("Service", "test.Job");
- XNameContainer xJobsNC = UnoRuntime.queryInterface(XNameContainer.class, jobs);
- xJobsNC.insertByName("TestJob", oNewJob);
-
- log.println("Adding configuration to Events ...");
- XSingleServiceFactory eventsFac = UnoRuntime.queryInterface(XSingleServiceFactory.class, events);
- Object oNewEvent = eventsFac.createInstance();
-
- XNameAccess xNewEventNA = UnoRuntime.queryInterface(XNameAccess.class, oNewEvent);
- Object oJobList = xNewEventNA.getByName("JobList");
- XSingleServiceFactory jobListFac = (XSingleServiceFactory)
- AnyConverter.toObject(new Type(XSingleServiceFactory.class),
- oJobList);
- XNameContainer jobListNC = (XNameContainer)
- AnyConverter.toObject(new Type(XNameContainer.class),
- oJobList);
- log.println("\tAdding TimeStamps to Events ...");
- Object oNewJobTimeStamps = jobListFac.createInstance();
-
- jobListNC.insertByName("TestJob", oNewJobTimeStamps);
-
-
- XNameContainer xEventsNC = UnoRuntime.queryInterface(XNameContainer.class, events);
- xEventsNC.insertByName("TestEvent", oNewEvent);
-
- XChangesBatch xCB = UnoRuntime.queryInterface(XChangesBatch.class, oRootCfg);
- xCB.commitChanges();
-
- util.utils.waitForEventIdle(Param.getMSF());
-
- } catch (com.sun.star.uno.Exception e) {
- e.printStackTrace(log);
- throw new StatusException("Couldn't change config", e);
- }
+ log.println("Adding configuration to Jobs ...");
+ XSingleServiceFactory jobsFac = UnoRuntime.queryInterface(XSingleServiceFactory.class, jobs);
+ Object oNewJob = jobsFac.createInstance();
+ XNameReplace xNewJobNR = UnoRuntime.queryInterface(XNameReplace.class, oNewJob);
+ xNewJobNR.replaceByName("Service", "test.Job");
+ XNameContainer xJobsNC = UnoRuntime.queryInterface(XNameContainer.class, jobs);
+ xJobsNC.insertByName("TestJob", oNewJob);
+
+ log.println("Adding configuration to Events ...");
+ XSingleServiceFactory eventsFac = UnoRuntime.queryInterface(XSingleServiceFactory.class, events);
+ Object oNewEvent = eventsFac.createInstance();
+
+ XNameAccess xNewEventNA = UnoRuntime.queryInterface(XNameAccess.class, oNewEvent);
+ Object oJobList = xNewEventNA.getByName("JobList");
+ XSingleServiceFactory jobListFac = (XSingleServiceFactory)
+ AnyConverter.toObject(new Type(XSingleServiceFactory.class),
+ oJobList);
+ XNameContainer jobListNC = (XNameContainer)
+ AnyConverter.toObject(new Type(XNameContainer.class),
+ oJobList);
+ log.println("\tAdding TimeStamps to Events ...");
+ Object oNewJobTimeStamps = jobListFac.createInstance();
+
+ jobListNC.insertByName("TestJob", oNewJobTimeStamps);
+
+ XNameContainer xEventsNC = UnoRuntime.queryInterface(XNameContainer.class, events);
+ xEventsNC.insertByName("TestEvent", oNewEvent);
+
+ XChangesBatch xCB = UnoRuntime.queryInterface(XChangesBatch.class, oRootCfg);
+ xCB.commitChanges();
+
+ util.utils.waitForEventIdle(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_i18n/BreakIterator.java b/qadevOOo/tests/java/mod/_i18n/BreakIterator.java
index 153a210..b7d0491 100644
--- a/qadevOOo/tests/java/mod/_i18n/BreakIterator.java
+++ b/qadevOOo/tests/java/mod/_i18n/BreakIterator.java
@@ -20,7 +20,6 @@ package mod._i18n;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -55,18 +54,10 @@ public class BreakIterator extends TestCase {
* documents directory
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
-
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
-
- try {
- log.println( "creating a drawdoc" );
- xTextDoc = SOF.loadDocument(utils.getFullTestURL("Iterator.sxw"));
- } catch ( com.sun.star.uno.Exception e ) {
- // Some exception occurs.FAILED
- e.printStackTrace( log );
- throw new StatusException( "Couldn't load document", e );
- }
+ log.println( "creating a drawdoc" );
+ xTextDoc = SOF.loadDocument(utils.getFullTestURL("Iterator.sxw"));
}
/**
diff --git a/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java b/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java
index 3bba0ae..c83a2f4 100644
--- a/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java
+++ b/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java
@@ -32,7 +32,6 @@ import com.sun.star.util.XCloseable;
import helper.PropertyHandlerImpl;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -74,12 +73,9 @@ public class ObjectInspector extends TestCase {
* @see com.sun.star.frame.Desktop
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
log.println("create a desktop...");
StarDesktop = DesktopTools.createDesktop(Param.getMSF());
- if (StarDesktop == null){
- throw new StatusException("Could not get a Desktop: null", null);
- }
}
/**
diff --git a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java
index dcb0627..62fa3c2 100644
--- a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java
+++ b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java
@@ -27,7 +27,6 @@ import com.sun.star.util.XCloseable;
import helper.PropertyHandlerFactroy;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -64,12 +63,9 @@ public class ObjectInspectorModel extends TestCase {
* @see com.sun.star.frame.Desktop
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
log.println("create a desktop...");
StarDesktop = DesktopTools.createDesktop(Param.getMSF());
- if (StarDesktop == null){
- throw new StatusException("Could not get a Desktop: null", null);
- }
}
/**
diff --git a/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java b/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java
index 660fdfe..3c1e5a7 100644
--- a/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java
+++ b/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java
@@ -54,11 +54,6 @@ import com.sun.star.uno.XInterface;
*/
public class RegistryTypeDescriptionProvider extends TestCase {
- @Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
-
- }
-
/**
* Creating a TestEnvironment for the interfaces to be tested.
* Creates an instance of the service
diff --git a/qadevOOo/tests/java/mod/_regtypeprov/uno/RegistryTypeDescriptionProvider.java b/qadevOOo/tests/java/mod/_regtypeprov/uno/RegistryTypeDescriptionProvider.java
index a2da058..553578d 100644
--- a/qadevOOo/tests/java/mod/_regtypeprov/uno/RegistryTypeDescriptionProvider.java
+++ b/qadevOOo/tests/java/mod/_regtypeprov/uno/RegistryTypeDescriptionProvider.java
@@ -51,11 +51,6 @@ import lib.TestParameters;
*/
public class RegistryTypeDescriptionProvider extends TestCase {
- @Override
- protected void initialize ( TestParameters Param, PrintWriter log) {
-
- }
-
/**
* Creating a TestEnvironment for the interfaces to be tested.
* Creates an instance of the service
diff --git a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java
index d9e8fb2..ed9e5da 100644
--- a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java
+++ b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java
@@ -19,7 +19,6 @@ package mod._sc;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -142,17 +141,13 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase {
* Opens new writer document.
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
msf = Param.getMSF();
- try {
- SOfficeFactory SOF = SOfficeFactory.getFactory(msf);
- xCalcDoc = UnoRuntime.queryInterface(XComponent.class,
- SOF.createCalcDoc(
- null));
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException("Can't create document", e);
- }
+ SOfficeFactory SOF = SOfficeFactory.getFactory(msf);
+ xCalcDoc = UnoRuntime.queryInterface(XComponent.class,
+ SOF.createCalcDoc(
+ null));
}
diff --git a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java
index 03f649c..b8ecfbf 100644
--- a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java
+++ b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java
@@ -20,7 +20,6 @@ package mod._sc;
import java.io.PrintWriter;
-import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
@@ -50,22 +49,16 @@ import com.sun.star.util.XURLTransformer;
public class AccessibleEditableTextPara_PreviewCell extends TestCase {
- private XSpreadsheetDocument xSheetDoc = null;
+ XSpreadsheetDocument xSheetDoc = null;
/**
* Creates a spreadsheet document.
*/
@Override
- protected void initialize( TestParameters tParam, PrintWriter log ) {
+ protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
- try {
- log.println( "creating a Spreadsheet document" );
- xSheetDoc = SOF.createCalcDoc(null);
- } catch ( com.sun.star.uno.Exception e ) {
- // Some exception occurs.FAILED
- e.printStackTrace( log );
- throw new StatusException( "Couldn't create document", e );
- }
+ log.println( "creating a Spreadsheet document" );
+ xSheetDoc = SOF.createCalcDoc(null);
}
/**
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java
index 0e2901f..d9403aa 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java
@@ -125,7 +125,7 @@ public class ScAccessibleCsvCell extends TestCase {
* @see #initializeTestCase
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
// get a soffice factory object
SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java
index 518ce6c..cfb3724 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java
@@ -108,7 +108,7 @@ public class ScAccessibleCsvGrid extends TestCase {
* @see #initializeTestCase
*/
@Override
- protected void initialize(TestParameters Param, PrintWriter log) {
+ protected void initialize(TestParameters Param, PrintWriter log) throws Exception {
// get a soffice factory object
SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list