diff options
460 files changed, 1748 insertions, 4497 deletions
diff --git a/qadevOOo/runner/base/TestBase.java b/qadevOOo/runner/base/TestBase.java index 0e4d94710198..9fd0b2debc81 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 bc63f40b4dfb..c5c14768aa40 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 485eec707edb..5a254af2819d 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 ab2dd9630940..96adacd3e0cc 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 3a3d7e9c9467..e68eff62e15e 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 c7ee6dc3b154..05fdb6b2c2e4 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 9240f6e1320d..f61638c4702f 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 fd6858c8dd78..cb799d6bb22d 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 index ec7a366412bb..ec7a366412bb 100644..100755 --- a/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java diff --git a/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java index a2776ce3aaaa..a2776ce3aaaa 100644..100755 --- a/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java diff --git a/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java b/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java index c679d542d76f..1957f9d6b9be 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 c1b270f50630..1860e3638104 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 9e872a6ed623..17b0c4e73d36 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 c2b93097481a..3128ef468c26 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 4363f2f2b335..880a47c17b9a 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 029ae3069a5d..7b291e743717 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 035068a5c60d..fa254bbdc135 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 ab5d55e8992a..24b69854b26a 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 aa20c34e58fb..4e5213a2f920 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 index 4ccff483f817..4ccff483f817 100644..100755 --- a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java index ca4fbcc5d665..7736cdbbb11e 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 b3b58b289737..105fcbd18f51 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 9edd7b4f4271..dafdd9eaf38e 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 dbd25cf1634d..38d148a3de5d 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 9d604830bf4a..82f905931658 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 791378206e73..c54b24184281 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 1b477d4059be..2bb3f35d2b51 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 da579f86343f..edec240f99da 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 a740b136df7b..010948537d4b 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 571ba1baeaaf..963e996ed170 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 9f3d82843f23..571401abaab6 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 9e54e481aa77..fed0b5d57e9b 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 01bcbd7479a1..d6f7015ee8de 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 c8a233391919..d80597b12982 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 aad8154c5343..0d4c758009f8 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 f3f06ce276e9..4b233ca86347 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 3a9bec8f93c1..b672cbd9c703 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 f16d70870c3a..247d56a4a3d8 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 754df511b4c7..2b8469144069 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 cb812c5a73d7..9924e4c1d0e8 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 2223ebcf881a..4a5334044d20 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 187f788cc32b..293fcbbf77ed 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 456db16439d1..6995574d6b42 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 0423dddb32d1..fd6f571df05a 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 75de4dc0cb4e..dcc810bd60ab 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 e8df1c4cc3ec..7b64604d71a3 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 bb7ce361b836..11e67319361e 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 15294202e11e..0c93ba70f59f 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 e76af7e202de..a13246adc1a8 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 fabfde66c7c6..174bcd54d682 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 cd422b7fbf09..da867ae2cc17 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 44b6daae12bb..f482036950a0 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 a1e2d2aa219a..cec4696cd331 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 89b81f6f75aa..030a9b011f9a 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 8be65237de4b..f8aa38d974a9 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 8b6405401f8c..23f26b0e5678 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 4b1f11d927b1..80d4b5bebc9d 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 65039cf2fcc2..0bec8f499413 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 21e358bfc946..7c7ea558906a 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 8b89364cd8b5..be0b9f9d6485 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 f0476355e283..76a951bb48ef 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 258a7619b7d7..d586a849720f 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 40c28b337acf..9e0486a0064b 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 012899a81327..e937e6a8816d 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 9bd5df78008c..7390e2c426f4 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 153a210b5c8b..b7d0491d66aa 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 3bba0ae1b647..c83a2f42cf11 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 dcb062727379..62fa3c298e0c 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 660fdfe9154c..3c1e5a7cbfc4 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 a2da0581a6ef..553578d005cb 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 d9e8fb268ce2..ed9e5da9a65c 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 03f649cd4c7a..b8ecfbfc29d4 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 0e2901f9132f..d9403aae8eb4 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 518ce6cb8915..cfb372413721 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()); diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java index 19307ebd843c..fb35f9236e02 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java @@ -145,7 +145,7 @@ public class ScAccessibleCsvRuler 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/ScAccessibleDocument.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.java index 37411116a9f6..348e8a6bc23e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -130,20 +129,15 @@ public class ScAccessibleDocument 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()); - try { - log.println("creating a spreadsheetdocument"); - String url = utils.getFullTestURL("calcshapes.sxc"); - log.println("loading document "+url); - xSpreadsheetDoc = SOF.loadDocument(url); - util.utils.waitForEventIdle(Param.getMSF()); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + String url = utils.getFullTestURL("calcshapes.sxc"); + log.println("loading document "+url); + xSpreadsheetDoc = SOF.loadDocument(url); + util.utils.waitForEventIdle(Param.getMSF()); } } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java index 30be8cc5de82..1c800d233ebc 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -186,20 +185,15 @@ public class ScAccessibleDocumentPagePreview 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()); - try { - log.println("creating a spreadsheetdocument"); - String url = utils.getFullTestURL("calcshapes.sxc"); - log.println("loading document "+url); - xSpreadsheetDoc = UnoRuntime.queryInterface( - XSpreadsheetDocument.class,SOF.loadDocument(url)); - util.utils.waitForEventIdle(Param.getMSF()); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + String url = utils.getFullTestURL("calcshapes.sxc"); + log.println("loading document "+url); + xSpreadsheetDoc = UnoRuntime.queryInterface( + XSpreadsheetDocument.class,SOF.loadDocument(url)); + util.utils.waitForEventIdle(Param.getMSF()); } } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java index 27e22248b2eb..74670742c8ae 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -229,16 +228,11 @@ public class ScAccessiblePageHeader 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()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java index 4102a9d2b101..ca72046d3a66 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -189,16 +188,11 @@ public class ScAccessiblePageHeaderArea 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()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java index 70760ccd5deb..d645c407a3d1 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -80,16 +79,10 @@ public class ScAccessiblePreviewCell extends TestCase { * 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/ScAccessiblePreviewHeaderCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java index a117c12a61d5..aefd4365b5bd 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java @@ -83,7 +83,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { * Creates a spreadsheet document. */ @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java index c4fc8870956c..1e6b8f0f0891 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -82,16 +81,10 @@ public class ScAccessiblePreviewTable extends TestCase { * 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/ScAccessibleSpreadsheet.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.java index 8227537bd5e6..dd177b7e35f3 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.java @@ -72,16 +72,10 @@ public class ScAccessibleSpreadsheet extends TestCase { * 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/ScAnnotationObj.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java index 225fff59f840..26306312d075 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,18 +66,10 @@ public class ScAnnotationObj extends TestCase { * 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/ScAnnotationShapeObj.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.java index 757020ef280b..21cae1a416eb 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.java @@ -34,7 +34,6 @@ import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -74,24 +73,18 @@ public class ScAnnotationShapeObj extends TestCase { * 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"); - log.println("Loading: "+utils.getFullTestURL( - "ScAnnotationShapeObj.sxc")); - xSheetDoc = - UnoRuntime.queryInterface(XSpreadsheetDocument.class, - SOF.loadDocument(utils.getFullTestURL( - "ScAnnotationShapeObj.sxc"))); - } 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"); + log.println("Loading: "+utils.getFullTestURL( + "ScAnnotationShapeObj.sxc")); + xSheetDoc = + UnoRuntime.queryInterface(XSpreadsheetDocument.class, + SOF.loadDocument(utils.getFullTestURL( + "ScAnnotationShapeObj.sxc"))); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java index 3d8dd7f18f2a..caa2e2a911fe 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -62,18 +61,10 @@ public class ScAnnotationTextCursor extends TestCase { private XSpreadsheetDocument xSheetDoc = null; @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); } @Override diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java index bc667eb500a0..24d9756528d7 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,18 +68,10 @@ public class ScAnnotationsObj extends TestCase { * Creates 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/ScAreaLinkObj.java b/qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.java index 71261a3706a1..f40eea8a509f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,18 +67,10 @@ public class ScAreaLinkObj extends TestCase { * Creates 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/ScAreaLinksObj.java b/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java index 00ca034ea9d3..8b324a723502 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,18 +63,10 @@ public class ScAreaLinksObj extends TestCase { * Creates 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/ScAutoFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java index 7cd2341a9e60..8565e3540064 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,17 +64,10 @@ public class ScAutoFormatsObj extends TestCase{ * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { 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/ScCellCursorObj.java b/qadevOOo/tests/java/mod/_sc/ScCellCursorObj.java index 3243c3327328..32df044428cc 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellCursorObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellCursorObj.java @@ -18,7 +18,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -103,18 +102,12 @@ public class ScCellCursorObj extends TestCase { * Creates 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/ScCellFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java index b53534226a6f..0194491218ff 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,18 +69,10 @@ public class ScCellFieldObj extends TestCase { * Creates 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/ScCellFieldsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java index 0c8104c1a994..3445d088a888 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,18 +64,10 @@ public class ScCellFieldsObj extends TestCase { * Creates 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/ScCellFormatsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java index e18bb34bc91f..a605e57ce4f0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -56,18 +55,12 @@ public class ScCellFormatsEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java index 76b253447172..e67bcf105a4a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -58,18 +57,11 @@ public class ScCellFormatsObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScCellObj.java b/qadevOOo/tests/java/mod/_sc/ScCellObj.java index a867514acceb..0c83486c9c29 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellObj.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -86,17 +85,10 @@ public class ScCellObj extends TestCase { * Creates 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/ScCellRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScCellRangeObj.java index 90dbbe9728b2..3b6d0865696d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellRangeObj.java @@ -18,7 +18,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -91,17 +90,11 @@ public class ScCellRangeObj extends TestCase { * Creates 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/ScCellRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScCellRangesObj.java index 96db4e543960..1dfbcfc1e6f4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellRangesObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -88,19 +87,11 @@ public class ScCellRangesObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java b/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java index 56100f05ac4d..349eed1da44d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,18 +64,11 @@ public class ScCellSearchObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java b/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java index 0a0eb64fef9d..882f25702e54 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -94,18 +93,10 @@ public class ScCellTextCursor extends TestCase { * Creates 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/ScCellsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java index 00c37ddb39e5..48f4adf7713f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -58,18 +57,10 @@ public class ScCellsEnumeration extends TestCase { * Creates 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/ScCellsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellsObj.java index 251ad4899996..2fb813995c24 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,19 +60,11 @@ public class ScCellsObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScChartObj.java b/qadevOOo/tests/java/mod/_sc/ScChartObj.java index d2530fa76296..6b1515b3e5e8 100644 --- a/qadevOOo/tests/java/mod/_sc/ScChartObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScChartObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,18 +67,11 @@ public class ScChartObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScChartsObj.java b/qadevOOo/tests/java/mod/_sc/ScChartsObj.java index f511d4e259d4..c35576806171 100644 --- a/qadevOOo/tests/java/mod/_sc/ScChartsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScChartsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,18 +68,11 @@ public class ScChartsObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.java b/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.java index a3bba3bf8297..896db757b9c4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.java +++ b/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.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,18 +49,11 @@ public class ScConsolidationDescriptor extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java b/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java index 87dd41ccb710..04e9beebb8c5 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java @@ -19,7 +19,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,18 +66,10 @@ public class ScDDELinkObj extends TestCase { * Creates 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/ScDDELinksObj.java b/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java index a15b857073ea..9fb7f59614e9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,18 +64,10 @@ public class ScDDELinksObj extends TestCase { * Creates 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/ScDataPilotFieldGroupItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java index cffabddba81d..c45a4eb23773 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java @@ -39,7 +39,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -62,22 +61,13 @@ public class ScDataPilotFieldGroupItemObj extends TestCase * Creates 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/ScDataPilotFieldGroupObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java index 3123ff91df31..c9f08c2508c0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java @@ -38,7 +38,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,22 +60,13 @@ public class ScDataPilotFieldGroupObj extends TestCase * Creates 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/ScDataPilotFieldGroupsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java index 6ff2d8422c29..7f3b28752116 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java @@ -38,7 +38,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,22 +60,13 @@ public class ScDataPilotFieldGroupsObj extends TestCase * Creates 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/ScDataPilotFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java index 618f85ed0df1..043e8798ac69 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java @@ -37,7 +37,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -75,18 +74,12 @@ public class ScDataPilotFieldObj extends TestCase { * Creates 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/ScDataPilotFieldsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java index 72b656217e3a..1b3d2748f047 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -62,17 +61,10 @@ public class ScDataPilotFieldsObj extends TestCase { * Creates 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/ScDataPilotItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java index 17c1841d6a62..c1de8eb33710 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java @@ -38,7 +38,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -76,18 +75,12 @@ public class ScDataPilotItemObj extends TestCase { * Creates 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/ScDataPilotItemsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java index b02fd9d107a1..3d06faee132f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java @@ -38,7 +38,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -76,18 +75,12 @@ public class ScDataPilotItemsObj extends TestCase { * Creates 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/ScDataPilotTableObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java index 6440655446d9..3a419cca25f0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,18 +68,10 @@ public class ScDataPilotTableObj extends TestCase { * Creates 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/ScDataPilotTablesObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java index c06ad51ed53d..7bcd96b85391 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,18 +64,10 @@ public class ScDataPilotTablesObj extends TestCase { * Creates 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/ScDatabaseRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java index c6c5e95f6c36..65630bd00989 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java @@ -37,7 +37,6 @@ import com.sun.star.util.XImportable; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -75,18 +74,12 @@ public class ScDatabaseRangeObj extends TestCase { * Creates 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/ScDatabaseRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java index 99a882a96d57..fd8900babcc1 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -60,18 +59,10 @@ public class ScDatabaseRangesObj extends TestCase { * Creates 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/ScDocumentConfiguration.java b/qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.java index 44494f2b9609..1add5a952a53 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.java +++ b/qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.java @@ -24,7 +24,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -37,19 +36,13 @@ public class ScDocumentConfiguration extends TestCase { private XSpreadsheetDocument xSheetDoc = null; @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println("creating a sheetdocument"); - 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 sheetdocument"); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java b/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java index a33fbc739612..0619ca7533c4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -48,18 +47,11 @@ public class ScDrawPageObj extends TestCase { * Creates a new Draw document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - xDoc = 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 sheetdocument" ); + xDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java b/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java index 64b53780a84e..345901bdfc52 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java @@ -63,19 +63,11 @@ public class ScDrawPagesObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java index db3a05c3e836..993254bfabe0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,19 +60,11 @@ public class ScFilterDescriptorBase extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java b/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java index e8bdbf3b6e02..6d2fbdaa4250 100644 --- a/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java @@ -21,7 +21,6 @@ package mod._sc; import java.io.PrintWriter; import java.util.Random; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -38,18 +37,10 @@ public class ScFunctionDescriptionObj extends TestCase { private XSpreadsheetDocument xSheetDoc = null; @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); } @Override diff --git a/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java b/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java index d7c09b93d3b9..e7c90e6a8aea 100644 --- a/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -59,18 +58,10 @@ public class ScFunctionListObj extends TestCase { * Creates 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/ScHeaderFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.java index b18507ae76fc..bb4ee77bd8ae 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -72,18 +71,10 @@ public class ScHeaderFieldObj extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java index 6ce687d9b89f..df6f1ef26e1c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,18 +67,10 @@ public class ScHeaderFieldsObj extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java index 4e3710326e5d..b74046367f52 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -57,18 +56,10 @@ public class ScHeaderFooterContentObj extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java index 49d2eb9fc726..f91682023b49 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -96,17 +95,10 @@ public class ScHeaderFooterTextCursor extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java index a0c818bf150f..990d6183a11d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -85,18 +84,11 @@ public class ScHeaderFooterTextObj extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java index 0d8eaba0fb5f..5782b1327016 100644 --- a/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -56,18 +55,10 @@ public class ScImportDescriptorBase extends TestCase { * */ @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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java index 8c6c05fee349..e47b1a5f4389 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,11 @@ public class ScIndexEnumeration_CellAnnotationsEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java index abb746470f76..95e6f4216a70 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -44,18 +43,10 @@ public class ScIndexEnumeration_CellAreaLinksEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_DDELinksEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java index 23d2e1b445e8..16b0e5188704 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -48,18 +47,10 @@ public class ScIndexEnumeration_DDELinksEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_DataPilotFieldsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java index b436d097ac68..951e49b81f82 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,18 +48,10 @@ public class ScIndexEnumeration_DataPilotFieldsEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_DataPilotItemsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java index 354b1d5d9ee6..508469a73219 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java @@ -39,7 +39,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -78,18 +77,12 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration * Creates 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/ScIndexEnumeration_DataPilotTablesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java index 5f0b9c74e1ab..e2472dbacc22 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,18 +48,10 @@ public class ScIndexEnumeration_DataPilotTablesEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_DatabaseRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java index ccd5ee7e8f77..8fbf7f548eec 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,18 +45,10 @@ public class ScIndexEnumeration_DatabaseRangesEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_FunctionDescriptionEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java index 9f507bf76536..0e0f75ad9e2e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -40,18 +39,10 @@ public class ScIndexEnumeration_FunctionDescriptionEnumeration extends TestCase * Creates 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/ScIndexEnumeration_LabelRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.java index 61b72238ed3f..767c4a1be5f6 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -42,18 +41,11 @@ public class ScIndexEnumeration_LabelRangesEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java index dc716d03ac72..cacd7e6b801c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -43,17 +42,10 @@ public class ScIndexEnumeration_NamedRangesEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_SheetCellRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.java index ed0df37afe26..c6e2ae58283b 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -45,19 +44,11 @@ public class ScIndexEnumeration_SheetCellRangesEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java index dde526e1254c..ec1cdb149ca4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,17 +45,10 @@ public class ScIndexEnumeration_SheetLinksEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java index 01e648e4fe51..11050dd12994 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,17 +45,12 @@ public class ScIndexEnumeration_SpreadsheetViewPanesEnumeration extends TestCase * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object SOF = SOfficeFactory.getFactory( Param.getMSF()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java index 3ca18f220252..72617bb55e74 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -40,17 +39,12 @@ public class ScIndexEnumeration_SpreadsheetsEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java index 787bbe833531..0854b11989f7 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -48,21 +47,11 @@ public class ScIndexEnumeration_SubTotalFieldsEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { - // creation of the testobject here - // first we write what we are intend to do to log file - log.println("creating a test environment"); - + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java index 1f112b76aa5e..473170ee2f49 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -40,17 +39,10 @@ public class ScIndexEnumeration_TableAutoFormatEnumeration extends TestCase{ * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { 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/ScIndexEnumeration_TableChartsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java index af896149c8dd..dd58474c34e2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -51,18 +50,11 @@ public class ScIndexEnumeration_TableChartsEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java index 874632c3d138..169f73be9fac 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,18 +45,11 @@ public class ScIndexEnumeration_TableColumnsEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java index 281946bc299b..bed5fa04c677 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.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,18 +49,11 @@ public class ScIndexEnumeration_TableConditionalEntryEnumeration extends TestCas * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - xSpreadsheetDoc = 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 sheetdocument" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java index 03d2efb28978..3dda6ce59d47 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,17 +45,10 @@ public class ScIndexEnumeration_TableRowsEnumeration extends TestCase { * Creates 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/ScIndexEnumeration_TextFieldEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java index 73d0455c09a8..632a08dc433b 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -60,18 +59,10 @@ public class ScIndexEnumeration_TextFieldEnumeration extends TestCase { * Creates 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/ScLabelRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java index 3639302fe81c..df585350d548 100644 --- a/qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -55,18 +54,11 @@ public class ScLabelRangeObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java index 15e0d0b46405..2806fd4cfb55 100644 --- a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -58,18 +57,11 @@ public class ScLabelRangesObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java index 229bec8d299d..e8e2afff28d5 100644 --- a/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,18 +60,11 @@ public class ScNamedRangeObj extends TestCase { * Creates 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/ScNamedRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.java index c8d26848b561..737123413d54 100644 --- a/qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,17 +63,10 @@ public class ScNamedRangesObj extends TestCase { * Creates 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/ScRecentFunctionsObj.java b/qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java index 45cf216d23dc..bcce14359251 100644 --- a/qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -51,17 +50,10 @@ public class ScRecentFunctionsObj extends TestCase { * Creates 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/ScScenariosObj.java b/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java index 07c73cdf0ead..7df0671c2f42 100644 --- a/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,17 +63,11 @@ public class ScScenariosObj extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScShapeObj.java b/qadevOOo/tests/java/mod/_sc/ScShapeObj.java index 5f5d770065cb..93f9c6b40bbd 100644 --- a/qadevOOo/tests/java/mod/_sc/ScShapeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScShapeObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -37,18 +36,10 @@ public class ScShapeObj extends TestCase { static XComponent xSheetDoc; @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 sheetdoc" ); - xSheetDoc = UnoRuntime.queryInterface(XComponent.class, 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 sheetdoc" ); + xSheetDoc = UnoRuntime.queryInterface(XComponent.class, SOF.createCalcDoc(null)); } @Override diff --git a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java index 07727ae5b8bc..50726cd739b9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -71,17 +70,11 @@ public class ScSheetLinkObj extends TestCase { * Creates 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/ScSheetLinksObj.java b/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java index c4f2141778b0..cd209cfd8332 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -59,17 +58,10 @@ public class ScSheetLinksObj extends TestCase { * Creates 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/ScSortDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.java index b20f2b99081c..74a2d085f9a5 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -58,18 +57,10 @@ public class ScSortDescriptorBase extends TestCase { * */ @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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java index a4c349eb763a..84b6eeb895ad 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java @@ -51,18 +51,10 @@ public class ScSpreadsheetSettingsObj extends TestCase { * Creates 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/ScStyleFamiliesObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java index 5125e07f927c..127b73226222 100644 --- a/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java @@ -56,17 +56,10 @@ public class ScStyleFamiliesObj extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java index 1a211f90e3d2..ea8b06aabc3a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,17 +66,10 @@ public class ScStyleFamilyObj extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleObj.java index 37a063b9f781..8705c6d7d639 100644 --- a/qadevOOo/tests/java/mod/_sc/ScStyleObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScStyleObj.java @@ -21,7 +21,6 @@ package mod._sc; import java.io.PrintWriter; import java.util.ArrayList; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,17 +69,10 @@ public class ScStyleObj extends TestCase { * Creates 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" ); - xSpreadsheetDoc = 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" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java index 945212a02c5d..f8254abb2700 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,21 +63,12 @@ public class ScSubTotalDescriptorBase extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { - // creation of the testobject here - // first we write what we are intend to do to log file - log.println("creating a test environment"); - + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java index 000082e43b82..59bbe97ba5bc 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -59,21 +58,12 @@ public class ScSubTotalFieldObj extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { - // creation of the testobject here - // first we write what we are intend to do to log file - log.println("creating a test environment"); - + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTabViewObj.java b/qadevOOo/tests/java/mod/_sc/ScTabViewObj.java index b1378967f148..904854765cc1 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTabViewObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTabViewObj.java @@ -26,10 +26,10 @@ import com.sun.star.drawing.XDrawPagesSupplier; import com.sun.star.drawing.XShape; import com.sun.star.form.XForm; import com.sun.star.lang.WrappedTargetException; + import java.io.PrintWriter; import java.util.Comparator; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -90,20 +90,13 @@ public class ScTabViewObj extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - - try { - log.println("creating two spreadsheet documents"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - util.utils.waitForEventIdle(Param.getMSF()); - xSpreadsheetDoc2 = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating two spreadsheet documents"); + xSpreadsheetDoc = SOF.createCalcDoc(null); + util.utils.waitForEventIdle(Param.getMSF()); + xSpreadsheetDoc2 = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java b/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java index 69b3f6fa9a42..256a18efb708 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,18 +64,11 @@ public class ScTableColumnObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java b/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java index 39bbd9ea5cbb..dbb115acd695 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,18 +65,11 @@ public class ScTableColumnsObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java b/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java index f5170a35571d..5bed10b5e414 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,18 +63,11 @@ public class ScTableConditionalEntry extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - xSpreadsheetDoc = 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 sheetdocument" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java b/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java index d66ef56163e7..0e579afca64d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,18 +68,11 @@ public class ScTableConditionalFormat extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - xSpreadsheetDoc = 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 sheetdocument" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java b/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java index d49cb1580c4d..6a1434ed74fe 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -62,18 +61,11 @@ public class ScTableRowObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java b/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java index 6bca6bf03c9d..b210f4f6f78d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -63,17 +62,11 @@ public class ScTableRowsObj extends TestCase { * Creates 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/ScTableSheetObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java index cd22d415285c..206d0e70b6b3 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java @@ -37,7 +37,6 @@ import ifc.sheet._XCellRangesQuery; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -126,19 +125,13 @@ public class ScTableSheetObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println("creating a sheetdocument"); - 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 sheetdocument"); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java index d53550f728f4..8270337b7aef 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java @@ -66,17 +66,11 @@ public class ScTableSheetsObj extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java b/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java index 6dbe13a65d50..ce1a84e2b394 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -60,18 +59,11 @@ public class ScTableValidationObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - xSpreadsheetDoc = 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 sheetdocument" ); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java index 49164287ab31..8f7a98c7cc08 100644 --- a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java @@ -31,7 +31,6 @@ import java.awt.Color; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,19 +46,13 @@ public class ScUniqueCellFormatsEnumeration extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println("creating a sheetdocument"); - 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 sheetdocument"); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java index 713ea5e66ce3..808ac6739ca7 100644 --- a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java @@ -30,7 +30,6 @@ import java.awt.Color; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,19 +45,13 @@ public class ScUniqueCellFormatsObj extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println("creating a sheetdocument"); - 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 sheetdocument"); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java b/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java index 17f29a930b66..4eb687bf7490 100644 --- a/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java @@ -19,9 +19,9 @@ package mod._sc; import com.sun.star.container.NoSuchElementException; + import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -45,6 +45,7 @@ import com.sun.star.uno.AnyConverter; import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; + import util.FormTools; /** @@ -70,17 +71,11 @@ public class ScViewPaneObj extends TestCase { * Creates Spreadsheet document. */ @Override - public void initialize( TestParameters Param, PrintWriter log ) { + public void initialize( TestParameters Param, PrintWriter log ) throws Exception { // get a soffice factory object SOF = SOfficeFactory.getFactory( Param.getMSF()); - - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLContentExporter.java b/qadevOOo/tests/java/mod/_sc/XMLContentExporter.java index 0ea03329c221..b42d1fc9ca66 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLContentExporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -73,17 +72,10 @@ public class XMLContentExporter extends TestCase { * New spreadsheet document created. */ @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 calc document" ); - xSheetDoc = SOF.openDoc("scalc","_blank"); - - } 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 calc document" ); + xSheetDoc = SOF.openDoc("scalc","_blank"); } @Override diff --git a/qadevOOo/tests/java/mod/_sc/XMLContentImporter.java b/qadevOOo/tests/java/mod/_sc/XMLContentImporter.java index 13d917f2c273..5f3d65547361 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLContentImporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,19 +67,13 @@ public class XMLContentImporter extends TestCase { * New spreadsheet document created. */ @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 ); - comp = UnoRuntime.queryInterface - (XComponent.class, xSheetDoc) ; - } 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 ); + comp = UnoRuntime.queryInterface + (XComponent.class, xSheetDoc) ; } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLExporter.java b/qadevOOo/tests/java/mod/_sc/XMLExporter.java index ddeec0159b23..bddb0701d6ba 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLExporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -71,16 +70,10 @@ public class XMLExporter extends TestCase { * New spreadsheet document created. */ @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 calc document" ); - xSheetDoc = SOF.openDoc("scalc","_blank"); - } 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 calc document" ); + xSheetDoc = SOF.openDoc("scalc","_blank"); } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLImporter.java b/qadevOOo/tests/java/mod/_sc/XMLImporter.java index d1e5519acbbf..ff5e94063100 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLImporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,19 +66,13 @@ public class XMLImporter extends TestCase { * New spreadsheet document created. */ @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" ); - XSpreadsheetDocument xSpreadsheetDoc = SOF.createCalcDoc( null ); - xSheetDoc = UnoRuntime.queryInterface - (XComponent.class, xSpreadsheetDoc); - } 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" ); + XSpreadsheetDocument xSpreadsheetDoc = SOF.createCalcDoc( null ); + xSheetDoc = UnoRuntime.queryInterface + (XComponent.class, xSpreadsheetDoc); } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java index 2e8bf049ef34..7ebdca4b7e5f 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,17 +68,11 @@ public class XMLMetaExporter extends TestCase { * New spreadsheet document created. */ @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 calc document" ); - xSheetDoc = SOF.openDoc("scalc","_blank"); - } 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 calc document" ); + xSheetDoc = SOF.openDoc("scalc","_blank"); } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java index 0705e96734d0..b7e26d0bb138 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,19 +68,13 @@ public class XMLMetaImporter extends TestCase { * New spreadsheet document created. */ @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 ); - comp = UnoRuntime.queryInterface - (XComponent.class, xSheetDoc) ; - } 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 ); + comp = UnoRuntime.queryInterface + (XComponent.class, xSheetDoc) ; } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java index d00e5787f017..9386a233d7de 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,17 +68,11 @@ public class XMLSettingsExporter extends TestCase { * New spreadsheet document created. */ @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 calc document" ); - xSheetDoc = SOF.openDoc("scalc","_blank"); - } 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 calc document" ); + xSheetDoc = SOF.openDoc("scalc","_blank"); } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java index 08d570c344b4..fc83d3e3b4f2 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,19 +69,13 @@ public class XMLSettingsImporter extends TestCase { * New spreadsheet document created. */ @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 ); - comp = UnoRuntime.queryInterface - (XComponent.class, xSheetDoc) ; - } 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 ); + comp = UnoRuntime.queryInterface + (XComponent.class, xSheetDoc) ; } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java index b17b1136646a..36b1bc7e7856 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -71,17 +70,10 @@ public class XMLStylesExporter extends TestCase { * New spreadsheet document created. */ @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 calc document" ); - xSheetDoc = SOF.openDoc("scalc","_blank"); - } 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 calc document" ); + xSheetDoc = SOF.openDoc("scalc","_blank"); } /** diff --git a/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java index 5ccc6b295e92..49cb036def37 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java @@ -20,7 +20,6 @@ package mod._sc; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,19 +68,13 @@ public class XMLStylesImporter extends TestCase { * New spreadsheet document created. */ @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 ); - comp = UnoRuntime.queryInterface - (XComponent.class, xSheetDoc) ; - } 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 ); + comp = UnoRuntime.queryInterface + (XComponent.class, xSheetDoc) ; } /** diff --git a/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java b/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java index cd83ed92aafe..f2217435e1ad 100644 --- a/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java +++ b/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java @@ -19,7 +19,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -104,16 +103,10 @@ public class AccessibleDocumentView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } } diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java b/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java index 5d1e9a0502ca..844d1ce9cf77 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -58,18 +57,11 @@ public class ChXChartAxis extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartData.java b/qadevOOo/tests/java/mod/_sch/ChXChartData.java index a74fe3cf8b73..ffe92592529b 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartData.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartData.java @@ -19,7 +19,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,18 +45,12 @@ public class ChXChartData extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java b/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java index 39d7f5896d05..fca97a6ab684 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java @@ -19,7 +19,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,18 +48,11 @@ public class ChXChartDataArray extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartView.java b/qadevOOo/tests/java/mod/_sch/ChXChartView.java index e882092008a0..89873574de64 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartView.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartView.java @@ -21,7 +21,6 @@ package mod._sch; import java.io.PrintWriter; import java.util.Comparator; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -57,18 +56,11 @@ public class ChXChartView extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java b/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java index 66dae22ba8e7..abad0f6ca1ad 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java +++ b/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -71,20 +70,13 @@ public class ChXDataPoint extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - XComponent xComp = SOF.loadDocument( - utils.getFullTestURL("TransparencyChart.sxs")); - xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); - } 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 chartdocument" ); + XComponent xComp = SOF.loadDocument( + utils.getFullTestURL("TransparencyChart.sxs")); + xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChXDataRow.java b/qadevOOo/tests/java/mod/_sch/ChXDataRow.java index 1988c54cc14e..e723aa7161cd 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXDataRow.java +++ b/qadevOOo/tests/java/mod/_sch/ChXDataRow.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -77,20 +76,13 @@ public class ChXDataRow extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - XComponent xComp = SOF.loadDocument( - utils.getFullTestURL("TransparencyChart.sxs")); - xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); - } 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 chartdocument" ); + XComponent xComp = SOF.loadDocument( + utils.getFullTestURL("TransparencyChart.sxs")); + xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java b/qadevOOo/tests/java/mod/_sch/ChXDiagram.java index d7c645d37041..310e8a3e9318 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java +++ b/qadevOOo/tests/java/mod/_sch/ChXDiagram.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -138,18 +137,11 @@ public class ChXDiagram extends TestCase { * Creates Spreadsheet document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a sheetdocument" ); - 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 sheetdocument" ); + xSheetDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChartArea.java b/qadevOOo/tests/java/mod/_sch/ChartArea.java index 9a431d42dce6..c81a7cea2fa7 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartArea.java +++ b/qadevOOo/tests/java/mod/_sch/ChartArea.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -62,20 +61,13 @@ public class ChartArea extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - XComponent xComp = SOF.loadDocument( - utils.getFullTestURL("TransparencyChart.sxs")); - xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); - } 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 chartdocument" ); + XComponent xComp = SOF.loadDocument( + utils.getFullTestURL("TransparencyChart.sxs")); + xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChartGrid.java b/qadevOOo/tests/java/mod/_sch/ChartGrid.java index 4fff6fd07122..79b3aa3f0282 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartGrid.java +++ b/qadevOOo/tests/java/mod/_sch/ChartGrid.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -53,18 +52,11 @@ public class ChartGrid extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChartLegend.java b/qadevOOo/tests/java/mod/_sch/ChartLegend.java index a3cc171615fd..c8cfaa47746e 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartLegend.java +++ b/qadevOOo/tests/java/mod/_sch/ChartLegend.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -79,20 +78,13 @@ public class ChartLegend extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - XComponent xComp = SOF.loadDocument( - utils.getFullTestURL("TransparencyChart.sxs")); - xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); - } 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 chartdocument" ); + XComponent xComp = SOF.loadDocument( + utils.getFullTestURL("TransparencyChart.sxs")); + xChartDoc = UnoRuntime.queryInterface(XChartDocument.class,xComp); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChartLine.java b/qadevOOo/tests/java/mod/_sch/ChartLine.java index aa575389a7de..69c0a510aa81 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartLine.java +++ b/qadevOOo/tests/java/mod/_sch/ChartLine.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -52,18 +51,11 @@ public class ChartLine extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_sch/ChartTitle.java b/qadevOOo/tests/java/mod/_sch/ChartTitle.java index f0f0b17f63cf..1a4aaccfb805 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartTitle.java +++ b/qadevOOo/tests/java/mod/_sch/ChartTitle.java @@ -20,7 +20,6 @@ package mod._sch; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,18 +63,11 @@ public class ChartTitle extends TestCase { * Creates Chart document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } 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 chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java b/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java index e987d29a7b46..42b63f593ce4 100644 --- a/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java +++ b/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -138,19 +137,13 @@ public class AccessibleDrawDocumentView 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()); - 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/_sd/AccessibleOutlineView.java b/qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.java index 320b76c1ab26..d3dd3160e65e 100644 --- a/qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -115,19 +114,14 @@ public class AccessibleOutlineView 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()); - try { - log.println( "creating a impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - util.utils.waitForEventIdle(Param.getMSF()); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException("Couldn't create document", e); - } + log.println( "creating a impress document" ); + xImpressDoc = SOF.createImpressDoc(null); + util.utils.waitForEventIdle(Param.getMSF()); aModel = UnoRuntime.queryInterface(XModel.class, xImpressDoc); diff --git a/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java b/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java index 7f219e9b459b..de43cf3e5537 100644 --- a/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java +++ b/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -122,18 +121,13 @@ public class AccessibleSlideView 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()); - try { - log.println( "creating a impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException("Couldn't create document", e); - } + log.println( "creating a impress document" ); + xImpressDoc = SOF.createImpressDoc(null); util.utils.waitForEventIdle(Param.getMSF()); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java b/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java index 0b9fd8cda45b..a3c701215016 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java @@ -87,7 +87,7 @@ public class DrawController_HandoutView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java b/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java index 8f2e56cc7147..12168ee405ce 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java @@ -87,7 +87,7 @@ public class DrawController_NotesView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java b/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java index 38d03e122d51..09747f868fb6 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java @@ -87,7 +87,7 @@ public class DrawController_OutlineView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java b/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java index 8f1acd59904e..d3d6a09ca9d2 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java @@ -87,7 +87,7 @@ public class DrawController_PresentationView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java b/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java index f9712d634fc1..e3ca755396a0 100644 --- a/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java +++ b/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java @@ -52,19 +52,12 @@ public class SdDocLinkTargets extends TestCase { * Creates Drawing document. */ @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()); - - 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/_sd/SdDrawPage.java b/qadevOOo/tests/java/mod/_sd/SdDrawPage.java index e7754d50eb92..bcf8f963060d 100644 --- a/qadevOOo/tests/java/mod/_sd/SdDrawPage.java +++ b/qadevOOo/tests/java/mod/_sd/SdDrawPage.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -90,19 +89,12 @@ public class SdDrawPage extends TestCase { * Creates Drawing document. */ @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()); - - 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/_sd/SdDrawPagesAccess.java b/qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java index fb88ccd96b8e..ea4afc016f07 100644 --- a/qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java +++ b/qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java @@ -62,19 +62,13 @@ public class SdDrawPagesAccess extends TestCase { * Creates Drawing document. */ @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()); - 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/_sd/SdGenericDrawPage.java b/qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.java index e0fece369541..6190b3693313 100644 --- a/qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.java +++ b/qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -83,19 +82,13 @@ public class SdGenericDrawPage extends TestCase { * Creates Drawing document. */ @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()); - 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/_sd/SdLayer.java b/qadevOOo/tests/java/mod/_sd/SdLayer.java index 8ac7adc95e4c..1c1019abc9a5 100644 --- a/qadevOOo/tests/java/mod/_sd/SdLayer.java +++ b/qadevOOo/tests/java/mod/_sd/SdLayer.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -57,18 +56,12 @@ public class SdLayer extends TestCase { * Creates Drawing document. */ @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()); - - try { - log.println( "creating a draw document" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch (com.sun.star.uno.Exception e) { - 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/_sd/SdLayerManager.java b/qadevOOo/tests/java/mod/_sd/SdLayerManager.java index ba47f378de5d..8d42ce8a902c 100644 --- a/qadevOOo/tests/java/mod/_sd/SdLayerManager.java +++ b/qadevOOo/tests/java/mod/_sd/SdLayerManager.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,19 +66,12 @@ public class SdLayerManager extends TestCase { * Creates Drawing document. */ @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()); - - 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/_sd/SdMasterPage.java b/qadevOOo/tests/java/mod/_sd/SdMasterPage.java index fb833c24d541..d23c1d5d0781 100644 --- a/qadevOOo/tests/java/mod/_sd/SdMasterPage.java +++ b/qadevOOo/tests/java/mod/_sd/SdMasterPage.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -84,19 +83,13 @@ public class SdMasterPage extends TestCase { * Creates Drawing document. */ @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()); - 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/_sd/SdMasterPagesAccess.java b/qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.java index d7abdc890f7a..6477620876d1 100644 --- a/qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.java +++ b/qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.java @@ -56,19 +56,12 @@ public class SdMasterPagesAccess extends TestCase { * Creates Drawing document. */ @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()); - - 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/_sd/SdPageLinkTargets.java b/qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.java index 97efb7b022ac..7d314645ee39 100644 --- a/qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.java +++ b/qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -57,19 +56,12 @@ public class SdPageLinkTargets extends TestCase { * Creates Drawing document. */ @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()); - - 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/_sd/SdUnoDrawView.java b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java index a0e108b7db54..f3a963241d76 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java @@ -85,7 +85,7 @@ public class SdUnoDrawView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java index f4fbe3e13d2f..7a857ca9410e 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java @@ -80,7 +80,7 @@ public class SdUnoOutlineView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoPresView.java b/qadevOOo/tests/java/mod/_sd/SdUnoPresView.java index 91e9923b288a..0e9ba1643084 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoPresView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoPresView.java @@ -84,7 +84,7 @@ public class SdUnoPresView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java b/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java index d4f4b138a4fc..510e61064f08 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java @@ -53,7 +53,7 @@ public class SdUnoSlideView 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop( Param.getMSF()) ); diff --git a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java index db7027d790bb..a969aab0fe49 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java +++ b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,20 +69,12 @@ public class SdXCustomPresentation extends TestCase { * Creates Impress document. */ @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()); - - try { - log.println( "creating a draw document" ); - xImpressDoc = SOF.createImpressDoc(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" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java index aba6c0617752..29a9d0a87002 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java +++ b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -63,19 +62,12 @@ public class SdXCustomPresentationAccess extends TestCase { * Creates Impress document. */ @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()); - - try { - log.println( "creating a draw document" ); - xImpressDoc = SOF.createImpressDoc(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" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sd/SdXPresentation.java b/qadevOOo/tests/java/mod/_sd/SdXPresentation.java index 110d755ea9b8..344eb205b940 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXPresentation.java +++ b/qadevOOo/tests/java/mod/_sd/SdXPresentation.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -57,18 +56,12 @@ public class SdXPresentation extends TestCase { * Creates Impress document. */ @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()); - - try { - log.println( "creating a draw document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException("Couldn't create document", e); - } + log.println( "creating a draw document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sd/SdXShape.java b/qadevOOo/tests/java/mod/_sd/SdXShape.java index 04f1266ebf2a..049adedf0962 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXShape.java +++ b/qadevOOo/tests/java/mod/_sd/SdXShape.java @@ -20,7 +20,6 @@ package mod._sd; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,18 +68,13 @@ public class SdXShape extends TestCase { * Creates Drawing document. */ @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()); - try { - log.println( "creating a draw document" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch (com.sun.star.uno.Exception e) { - 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/_sfx/DocumentTemplates.java b/qadevOOo/tests/java/mod/_sfx/DocumentTemplates.java index 082d861b34e2..835e5c6430cb 100644 --- a/qadevOOo/tests/java/mod/_sfx/DocumentTemplates.java +++ b/qadevOOo/tests/java/mod/_sfx/DocumentTemplates.java @@ -45,7 +45,7 @@ public class DocumentTemplates extends TestCase { XTextDocument xTextDoc; @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { String aURL=util.utils.getFullTestURL("report2.stw"); xTextDoc = util.WriterTools.loadTextDoc(tParam.getMSF(),aURL); } diff --git a/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java b/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java index ebfbd1c3f1b0..08ba9e03308d 100644 --- a/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java +++ b/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java @@ -43,14 +43,6 @@ import util.utils; 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/_sm/XMLExporter.java b/qadevOOo/tests/java/mod/_sm/XMLExporter.java index 084b50a8bcf2..f13275f00442 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLExporter.java @@ -66,17 +66,11 @@ public class XMLExporter extends TestCase { * New math document created. */ @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 math document" ); - xMathDoc = SOF.createMathDoc(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 math document" ); + xMathDoc = SOF.createMathDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sm/XMLImporter.java b/qadevOOo/tests/java/mod/_sm/XMLImporter.java index c5f66513afb2..6b42f254eee8 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLImporter.java @@ -20,7 +20,6 @@ package mod._sm; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,15 +64,10 @@ public class XMLImporter extends TestCase { * New math document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - xMathDoc = SOF.openDoc("smath","_blank"); - } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace( log ); - throw new StatusException( "Couldn't create document", ex ); - } + xMathDoc = SOF.openDoc("smath","_blank"); } /** diff --git a/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java index ce65362014ff..e2e29911bb48 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java @@ -20,7 +20,6 @@ package mod._sm; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,17 +67,11 @@ public class XMLMetaExporter extends TestCase { * New math document created. */ @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 math document" ); - xMathDoc = SOF.createMathDoc(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 math document" ); + xMathDoc = SOF.createMathDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java index 5559851f9031..72ba25ccdd79 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java @@ -20,7 +20,6 @@ package mod._sm; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,15 +67,10 @@ public class XMLMetaImporter extends TestCase { * New math document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - xMathDoc = SOF.openDoc("smath","_blank"); - } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace( log ); - throw new StatusException( "Couldn't create document", ex ); - } + xMathDoc = SOF.openDoc("smath","_blank"); } /** diff --git a/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java index ca2aa1939471..f52ef2b2ae79 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java @@ -20,7 +20,6 @@ package mod._sm; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,17 +65,11 @@ public class XMLSettingsExporter extends TestCase { * New math document created. */ @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 math document" ); - xMathDoc = SOF.createMathDoc(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 math document" ); + xMathDoc = SOF.createMathDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java index ad0cd54e26f1..484cd2b6decb 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java @@ -20,7 +20,6 @@ package mod._sm; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,15 +63,10 @@ public class XMLSettingsImporter extends TestCase { * New math document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - xMathDoc = SOF.openDoc("smath","_blank"); - } catch (com.sun.star.uno.Exception ex) { - ex.printStackTrace( log ); - throw new StatusException( "Couldn't create document", ex ); - } + xMathDoc = SOF.openDoc("smath","_blank"); } /** diff --git a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java index d07fe3aead5b..e40f2a12e187 100644 --- a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java +++ b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java @@ -21,7 +21,6 @@ package mod._stm; import java.io.PrintWriter; import java.util.ArrayList; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -34,7 +33,6 @@ import com.sun.star.io.XObjectOutputStream; import com.sun.star.io.XOutputStream; import com.sun.star.io.XPersistObject; import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.registry.CannotRegisterImplementationException; import com.sun.star.registry.XImplementationRegistration; import com.sun.star.registry.XSimpleRegistry; import com.sun.star.uno.UnoRuntime; @@ -79,7 +77,7 @@ public class ObjectInputStream extends TestCase { * @see com.sun.star.cmp.PersistObject */ @Override - public void initialize(TestParameters tParam, PrintWriter log) { + public void initialize(TestParameters tParam, PrintWriter log) throws Exception { XMultiServiceFactory xMSF = tParam.getMSF(); Object oPersObj = null; // test first if object is already registered @@ -96,33 +94,16 @@ public class ObjectInputStream extends TestCase { String url = util.utils.getFullTestURL ("qadevlibs/MyPersistObjectImpl.jar"); XImplementationRegistration xir; - try { - Object o = xMSF.createInstance( - "com.sun.star.registry.ImplementationRegistration"); - xir = UnoRuntime.queryInterface( - XImplementationRegistration.class, o); - - } - catch (com.sun.star.uno.Exception e) { - System.err.println( - "Couldn't create implementation registration"); - e.printStackTrace(); - throw new StatusException("Couldn't create ImplReg", e); - } + Object o = xMSF.createInstance( + "com.sun.star.registry.ImplementationRegistration"); + xir = UnoRuntime.queryInterface( + XImplementationRegistration.class, o); XSimpleRegistry xReg = null; - try { - System.out.println("Register library: " + url); - xir.registerImplementation( - "com.sun.star.loader.Java2", url, xReg); - System.out.println("...done"); - } catch (CannotRegisterImplementationException e) { - System.err.println("Name: " + url + " msg: " + - e.getMessage()); - e.printStackTrace(); - throw new StatusException( - "Couldn't register MyPersistObject", e); - } + System.out.println("Register library: " + url); + xir.registerImplementation( + "com.sun.star.loader.Java2", url, xReg); + System.out.println("...done"); } } diff --git a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java index 47c0a906970e..37f091b9f0ad 100644 --- a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java +++ b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java @@ -21,7 +21,6 @@ package mod._stm; import java.io.PrintWriter; import java.util.ArrayList; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -34,7 +33,6 @@ import com.sun.star.io.XObjectOutputStream; import com.sun.star.io.XOutputStream; import com.sun.star.io.XPersistObject; import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.registry.CannotRegisterImplementationException; import com.sun.star.registry.XImplementationRegistration; import com.sun.star.registry.XSimpleRegistry; import com.sun.star.uno.UnoRuntime; @@ -76,7 +74,7 @@ public class ObjectOutputStream extends TestCase { * @see com.sun.star.cmp.PersistObject */ @Override - public void initialize(TestParameters tParam, PrintWriter log) { + public void initialize(TestParameters tParam, PrintWriter log) throws Exception { XMultiServiceFactory xMSF = tParam.getMSF(); Object oPersObj = null; // test first if object is already registered @@ -93,32 +91,16 @@ public class ObjectOutputStream extends TestCase { String url = util.utils.getFullTestURL ("qadevlibs/MyPersistObjectImpl.jar"); XImplementationRegistration xir; - try { - Object o = xMSF.createInstance( - "com.sun.star.registry.ImplementationRegistration"); - xir = UnoRuntime.queryInterface( - XImplementationRegistration.class, o); - } - catch (com.sun.star.uno.Exception e) { - System.err.println( - "Couldn't create implementation registration"); - e.printStackTrace(); - throw new StatusException("Couldn't create ImplReg", e); - } + Object o = xMSF.createInstance( + "com.sun.star.registry.ImplementationRegistration"); + xir = UnoRuntime.queryInterface( + XImplementationRegistration.class, o); XSimpleRegistry xReg = null; - try { - System.out.println("Register library: " + url); - xir.registerImplementation( - "com.sun.star.loader.Java2", url, xReg); - System.out.println("...done"); - } catch (CannotRegisterImplementationException e) { - System.err.println("Name: " + url + " msg: " + - e.getMessage()); - e.printStackTrace(); - throw new StatusException( - "Couldn't register MyPersistObject", e); - } + System.out.println("Register library: " + url); + xir.registerImplementation( + "com.sun.star.loader.Java2", url, xReg); + System.out.println("...done"); } } diff --git a/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java b/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java index 00038f7ecc95..6be959ed9fd2 100644 --- a/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java +++ b/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java @@ -26,7 +26,6 @@ import com.sun.star.io.XObjectOutputStream; import com.sun.star.io.XOutputStream; import com.sun.star.io.XPersistObject; import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.registry.CannotRegisterImplementationException; import com.sun.star.registry.XImplementationRegistration; import com.sun.star.registry.XSimpleRegistry; import com.sun.star.uno.UnoRuntime; @@ -79,7 +78,7 @@ public class ObjectInputStream extends TestCase { * @see com.sun.star.cmp.PersistObject */ @Override - public void initialize(TestParameters tParam, PrintWriter log) { + public void initialize(TestParameters tParam, PrintWriter log) throws Exception { XMultiServiceFactory xMSF = tParam.getMSF(); Object oPersObj = null; // test first if object is already registered @@ -96,33 +95,16 @@ public class ObjectInputStream extends TestCase { String url = util.utils.getFullTestURL ("qadevlibs/MyPersistObjectImpl.jar"); XImplementationRegistration xir; - try { - Object o = xMSF.createInstance( - "com.sun.star.registry.ImplementationRegistration"); - xir = UnoRuntime.queryInterface( - XImplementationRegistration.class, o); - - } - catch (com.sun.star.uno.Exception e) { - System.err.println( - "Couldn't create implementation registration"); - e.printStackTrace(); - throw new StatusException("Couldn't create ImplReg", e); - } + Object o = xMSF.createInstance( + "com.sun.star.registry.ImplementationRegistration"); + xir = UnoRuntime.queryInterface( + XImplementationRegistration.class, o); XSimpleRegistry xReg = null; - try { - System.out.println("Register library: " + url); - xir.registerImplementation( - "com.sun.star.loader.Java2", url, xReg); - System.out.println("...done"); - } catch (CannotRegisterImplementationException e) { - System.err.println("Name: " + url + " msg: " + - e.getMessage()); - e.printStackTrace(); - throw new StatusException( - "Couldn't register MyPersistObject", e); - } + System.out.println("Register library: " + url); + xir.registerImplementation( + "com.sun.star.loader.Java2", url, xReg); + System.out.println("...done"); } } diff --git a/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java index 9bfd1e944103..98ffcbcb32ee 100644 --- a/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java +++ b/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java @@ -26,7 +26,6 @@ import com.sun.star.io.XObjectOutputStream; import com.sun.star.io.XOutputStream; import com.sun.star.io.XPersistObject; import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.registry.CannotRegisterImplementationException; import com.sun.star.registry.XImplementationRegistration; import com.sun.star.registry.XSimpleRegistry; import com.sun.star.uno.UnoRuntime; @@ -35,7 +34,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; import java.util.ArrayList; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -76,7 +74,7 @@ public class ObjectOutputStream extends TestCase { * @see com.sun.star.cmp.PersistObject */ @Override - public void initialize(TestParameters tParam, PrintWriter log) { + public void initialize(TestParameters tParam, PrintWriter log) throws Exception { XMultiServiceFactory xMSF = tParam.getMSF(); Object oPersObj = null; // test first if object is already registered @@ -93,32 +91,16 @@ public class ObjectOutputStream extends TestCase { String url = util.utils.getFullTestURL ("qadevlibs/MyPersistObjectImpl.jar"); XImplementationRegistration xir; - try { - Object o = xMSF.createInstance( - "com.sun.star.registry.ImplementationRegistration"); - xir = UnoRuntime.queryInterface( - XImplementationRegistration.class, o); - } - catch (com.sun.star.uno.Exception e) { - System.err.println( - "Couldn't create implementation registration"); - e.printStackTrace(); - throw new StatusException("Couldn't create ImplReg", e); - } + Object o = xMSF.createInstance( + "com.sun.star.registry.ImplementationRegistration"); + xir = UnoRuntime.queryInterface( + XImplementationRegistration.class, o); XSimpleRegistry xReg = null; - try { - System.out.println("Register library: " + url); - xir.registerImplementation( - "com.sun.star.loader.Java2", url, xReg); - System.out.println("...done"); - } catch (CannotRegisterImplementationException e) { - System.err.println("Name: " + url + " msg: " + - e.getMessage()); - e.printStackTrace(); - throw new StatusException( - "Couldn't register MyPersistObject", e); - } + System.out.println("Register library: " + url); + xir.registerImplementation( + "com.sun.star.loader.Java2", url, xReg); + System.out.println("...done"); } } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java index 09c4f7bb9133..cc586008aa4b 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java @@ -51,7 +51,7 @@ public class AccessibleBrowseBox 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop(Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java index 222c8874f2b2..3eed69fb7281 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java @@ -72,7 +72,7 @@ public class AccessibleBrowseBoxHeaderBar 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 { the_Desk = UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java index dee44c4aa007..e050458ecc09 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java @@ -70,7 +70,7 @@ public class AccessibleBrowseBoxHeaderCell 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop(Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java index a828487cd5fd..49f42f4c624b 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java @@ -68,7 +68,7 @@ public class AccessibleBrowseBoxTable 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 { the_Desk = UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java index 59b7ba2c59f3..164c9d5f6f2a 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java @@ -68,7 +68,7 @@ public class AccessibleBrowseBoxTableCell 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop(Param.getMSF()) ); } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java index c1e4542c37a1..97bd98565e8a 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java @@ -78,7 +78,7 @@ public class AccessibleIconChoiceCtrl 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 { the_Desk = UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java index 1c12950e8c95..ad15971a80ce 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java @@ -78,7 +78,7 @@ public class AccessibleIconChoiceCtrlEntry 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop(Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java index 02d4c53130cd..d20621a82d56 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java @@ -74,7 +74,7 @@ public class AccessibleTreeListBox 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 { the_Desk = UnoRuntime.queryInterface( XDesktop.class, DesktopTools.createDesktop(Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java index 7bd12efc842d..647b4958bfe1 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java @@ -84,7 +84,7 @@ public class AccessibleTreeListBoxEntry 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 { the_Desk = UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java index e1f3c36e5834..0502bf0f86eb 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -45,20 +44,11 @@ public class AccessibleControlShape extends TestCase { static XModel aModel; @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" ); - xDrawDoc = SOF.createDrawDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); - - } 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 drawdoc" ); + xDrawDoc = SOF.createDrawDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java index e2e2fe7bd756..7551834674fb 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -121,18 +120,13 @@ public class AccessibleEditableTextPara 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()); - try { - log.println("creating a spreadsheetdocument"); - xSpreadsheetDoc = UnoRuntime.queryInterface(XComponent.class,SOF.createCalcDoc(null)); - util.utils.waitForEventIdle(Param.getMSF()); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document ", e ); - } + log.println("creating a spreadsheetdocument"); + xSpreadsheetDoc = UnoRuntime.queryInterface(XComponent.class,SOF.createCalcDoc(null)); + util.utils.waitForEventIdle(Param.getMSF()); } } diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java index 79b94449828d..ef8f300d63e2 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -45,20 +44,11 @@ public class AccessibleGraphicShape extends TestCase { static XModel aModel; @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" ); - xDrawDoc = SOF.createDrawDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); - - } 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 drawdoc" ); + xDrawDoc = SOF.createDrawDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java index d44d927a5777..d67584025d6c 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,20 +45,13 @@ public class AccessibleOLEShape extends TestCase { static XModel aModel; @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" ); - xDrawDoc = SOF.createDrawDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); - - } 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 drawdoc" ); + xDrawDoc = SOF.createDrawDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java index 6e370f99f771..4e05ebb19c85 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -45,20 +44,11 @@ public class AccessiblePageShape extends TestCase { static XModel aModel; @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" ); - xDrawDoc = SOF.createDrawDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); - - } 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 drawdoc" ); + xDrawDoc = SOF.createDrawDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java index 8e526a6b0f25..46f21cee04f0 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,20 +46,11 @@ public class AccessiblePresentationGraphicShape extends TestCase { static XModel aModel; @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" ); - xDoc = SOF.createImpressDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDoc); - - } 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 drawdoc" ); + xDoc = SOF.createImpressDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java index 2446d70a24b1..0b70cf048b24 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,20 +46,11 @@ public class AccessiblePresentationOLEShape extends TestCase { static XModel aModel; @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" ); - xDrawDoc = SOF.createImpressDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); - - } 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 drawdoc" ); + xDrawDoc = SOF.createImpressDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java index 7dd7ae11d414..b81c1bb525bf 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,20 +46,11 @@ public class AccessiblePresentationShape extends TestCase { static XModel aModel; @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" ); - xDrawDoc = SOF.createImpressDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); - - } 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 drawdoc" ); + xDrawDoc = SOF.createImpressDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleShape.java index 84624419d481..b218012c6958 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -45,20 +44,13 @@ public class AccessibleShape extends TestCase { static XModel aModel; @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" ); - xDrawDoc = SOF.createDrawDoc(null); - aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); - - } 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 drawdoc" ); + xDrawDoc = SOF.createDrawDoc(null); + aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); } /** diff --git a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java b/qadevOOo/tests/java/mod/_svx/GraphicExporter.java index 127d77a9bce0..b47073de9d2f 100644 --- a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java +++ b/qadevOOo/tests/java/mod/_svx/GraphicExporter.java @@ -71,7 +71,7 @@ public class GraphicExporter extends TestCase { * Creates a new draw document. */ @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { log.println("creating a drawdoc"); xDrawDoc = DrawTools.createDrawDoc( tParam.getMSF()); diff --git a/qadevOOo/tests/java/mod/_svx/SvxDrawPage.java b/qadevOOo/tests/java/mod/_svx/SvxDrawPage.java index 11fea48fa59c..a0d07d0c9f1a 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxDrawPage.java +++ b/qadevOOo/tests/java/mod/_svx/SvxDrawPage.java @@ -30,7 +30,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -93,19 +92,13 @@ public class SvxDrawPage extends TestCase { * Creates a new Draw document. */ @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println("creating a sheetdocument"); - xDoc = 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 sheetdocument"); + xDoc = SOF.createCalcDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java index 7b0c4591761e..e2b3581d4a06 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java +++ b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -201,17 +200,11 @@ public class SvxGraphCtrlAccessibleContext 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()); - - try { - log.println("creating a draw document"); - xDrawDoc = SOF.createDrawDoc(null); - } catch (com.sun.star.uno.Exception e) { - 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/_svx/SvxGraphicObject.java b/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java index 63de3b5a5905..879fbcab207f 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java +++ b/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java @@ -103,7 +103,7 @@ public class SvxGraphicObject extends TestCase { * Creates a new Draw document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { log.println( "creating a drawdoc" ); xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); diff --git a/qadevOOo/tests/java/mod/_svx/SvxShape.java b/qadevOOo/tests/java/mod/_svx/SvxShape.java index 9d243087ec6a..9d67a4e58aa4 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShape.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShape.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -117,19 +116,13 @@ public class SvxShape 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" ); - xDrawDoc = SOF.loadDocument( - utils.getFullTestURL("SvxShape.sxd")); - } 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 drawdoc" ); + xDrawDoc = SOF.loadDocument( + utils.getFullTestURL("SvxShape.sxd")); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java b/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java index 4a67b6ec7e72..2eba316f34e7 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -114,19 +113,11 @@ public class SvxShapeCircle 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" ); - xDrawDoc = SOF.loadDocument( - utils.getFullTestURL("SvxShape.sxd")); - } 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 drawdoc" ); + xDrawDoc = SOF.loadDocument( + utils.getFullTestURL("SvxShape.sxd")); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java b/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java index 43deb6579835..151caf5eeb4d 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -51,16 +50,9 @@ public class SvxShapeCollection extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java b/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java index 077fbb8c9b00..7340da22a30c 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -79,16 +78,9 @@ public class SvxShapeConnector extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java b/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java index 881d80712c6f..662ff1921a08 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -53,16 +52,9 @@ public class SvxShapeControl extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java index b489800f6ff6..bf8d5bc496f6 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -54,16 +53,9 @@ public class SvxShapeDimensioning extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java b/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java index c45145b7971a..d49200a00aef 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,6 +45,7 @@ import com.sun.star.uno.XInterface; /** * * initial description + * * @see com.sun.star.drawing._XDrawPage * */ @@ -54,62 +54,53 @@ public class SvxShapeGroup extends TestCase { static XComponent xDrawDoc; - /** + /** * in general this method initializes the document */ - - @Override - protected void initialize(TestParameters Param, PrintWriter log) { - - // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); - - try { - log.println( "creating a draw document" ); + @Override + protected void initialize(TestParameters Param, PrintWriter log) + throws Exception { + // get a soffice factory object + SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF()); + log.println("creating a draw document"); xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } - - } + } - /** + /** * in general this method disposes the document */ - - @Override - protected void cleanup( TestParameters Param, PrintWriter log) { + @Override + protected void cleanup(TestParameters Param, PrintWriter log) { log.println("disposing xDrawDoc"); util.DesktopTools.closeDoc(xDrawDoc); - } + } /** - * creating a TestEnvironment for the interfaces to be tested + * creating a TestEnvironment for the interfaces to be tested */ @Override - public TestEnvironment createTestEnvironment - (TestParameters Param, PrintWriter log ) throws Exception { + public TestEnvironment createTestEnvironment(TestParameters Param, + PrintWriter log) throws Exception { XInterface oObj = null; XShapes oShapes = null; // creation of testobject here // first we write what we are intend to do to log file - log.println( "creating a test environment" ); + log.println("creating a test environment"); - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); + SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF()); // get the drawpage of drawing here - log.println( "getting Drawpage" ); - XDrawPagesSupplier oDPS = UnoRuntime.queryInterface(XDrawPagesSupplier.class,xDrawDoc); + log.println("getting Drawpage"); + XDrawPagesSupplier oDPS = UnoRuntime.queryInterface( + XDrawPagesSupplier.class, xDrawDoc); XDrawPages oDPn = oDPS.getDrawPages(); - XIndexAccess oDPi = UnoRuntime.queryInterface(XIndexAccess.class,oDPn); - oObj = (XDrawPage) AnyConverter.toObject( - new Type(XDrawPage.class),oDPi.getByIndex(0)); + XIndexAccess oDPi = UnoRuntime.queryInterface(XIndexAccess.class, oDPn); + oObj = (XDrawPage) AnyConverter.toObject(new Type(XDrawPage.class), + oDPi.getByIndex(0)); if (oObj == null) { System.out.println("**************************"); @@ -117,55 +108,56 @@ public class SvxShapeGroup extends TestCase { System.out.println("**************************"); } - //put something on the drawpage - log.println( "inserting some Shapes" ); - oShapes = UnoRuntime.queryInterface(XShapes.class,oObj); - XShape Shape1 = SOF.createShape(xDrawDoc, - 3000,4500,15000,1000,"Ellipse"); - oShapes.add(SOF.createShape(xDrawDoc, - 2000,1500,1000,1000,"Line")); + // put something on the drawpage + log.println("inserting some Shapes"); + oShapes = UnoRuntime.queryInterface(XShapes.class, oObj); + XShape Shape1 = SOF.createShape(xDrawDoc, 3000, 4500, 15000, 1000, + "Ellipse"); + oShapes.add(SOF.createShape(xDrawDoc, 2000, 1500, 1000, 1000, "Line")); oShapes.add(Shape1); - XShape Shape2 = SOF.createShape(xDrawDoc, - 5000,3500,7500,5000,"Rectangle"); + XShape Shape2 = SOF.createShape(xDrawDoc, 5000, 3500, 7500, 5000, + "Rectangle"); oShapes.add(Shape2); - log.println( "adding two style as ObjRelation for ShapeDescriptor" ); - XPropertySet oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,Shape1); + log.println("adding two style as ObjRelation for ShapeDescriptor"); + XPropertySet oShapeProps = UnoRuntime.queryInterface( + XPropertySet.class, Shape1); XStyle aStyle1 = null; try { - aStyle1 = (XStyle) AnyConverter.toObject( - new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} - oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,Shape2); + aStyle1 = (XStyle) AnyConverter.toObject(new Type(XStyle.class), + oShapeProps.getPropertyValue("Style")); + } catch (Exception e) { + } + oShapeProps = UnoRuntime.queryInterface(XPropertySet.class, Shape2); XStyle aStyle2 = null; try { - aStyle2 = (XStyle) AnyConverter.toObject( - new Type(XStyle.class),oShapeProps.getPropertyValue("Style")); - } catch (Exception e) {} - + aStyle2 = (XStyle) AnyConverter.toObject(new Type(XStyle.class), + oShapeProps.getPropertyValue("Style")); + } catch (Exception e) { + } - //get the XShapeGrouper + // get the XShapeGrouper log.println("get XShapeGroup"); - XShapeGrouper oSG = UnoRuntime.queryInterface - (XShapeGrouper.class, oObj); + XShapeGrouper oSG = UnoRuntime + .queryInterface(XShapeGrouper.class, oObj); oObj = oSG.group(oShapes); - log.println( "creating a new environment for drawpage object" ); - TestEnvironment tEnv = new TestEnvironment( oObj ); + log.println("creating a new environment for drawpage object"); + TestEnvironment tEnv = new TestEnvironment(oObj); - ShapeDsc sDsc = new ShapeDsc(5000,3500,7500,10000,"Rectangle"); - log.println( "adding Shape as mod relation to environment" ); - tEnv.addObjRelation("Shape", new InstCreator( xDrawDoc, sDsc)); + ShapeDsc sDsc = new ShapeDsc(5000, 3500, 7500, 10000, "Rectangle"); + log.println("adding Shape as mod relation to environment"); + tEnv.addObjRelation("Shape", new InstCreator(xDrawDoc, sDsc)); - tEnv.addObjRelation("Style1",aStyle1); - tEnv.addObjRelation("Style2",aStyle2); - for (int i=0;i<6;i++) { - Shape2 = SOF.createShape(xDrawDoc, - 5000+100*i,3500+100*i,7500+100*i,5000+100*i,"Rectangle"); + tEnv.addObjRelation("Style1", aStyle1); + tEnv.addObjRelation("Style2", aStyle2); + for (int i = 0; i < 6; i++) { + Shape2 = SOF.createShape(xDrawDoc, 5000 + 100 * i, 3500 + 100 * i, + 7500 + 100 * i, 5000 + 100 * i, "Rectangle"); oShapes.add(Shape2); } return tEnv; } // finish method createTestEnvironment -} // finish class SvxShapeGroup +} // finish class SvxShapeGroup diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java index 59a96459815a..51560ae92867 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -126,19 +125,12 @@ public class SvxShapePolyPolygon extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xDrawDoc = SOF.loadDocument( - utils.getFullTestURL("SvxShape.sxd")); - } 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 chartdocument" ); + xDrawDoc = SOF.loadDocument( + utils.getFullTestURL("SvxShape.sxd")); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java index d01ac62f92aa..8c403eb55362 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -128,19 +127,12 @@ public class SvxShapePolyPolygonBezier extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating a chartdocument" ); - xDrawDoc = SOF.loadDocument( - utils.getFullTestURL("SvxShape.sxd")); - } 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 chartdocument" ); + xDrawDoc = SOF.loadDocument( + utils.getFullTestURL("SvxShape.sxd")); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java b/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java index 258bcedee4f9..10a076e0b342 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java @@ -35,7 +35,7 @@ public class SvxUnoNumberingRules extends TestCase { static XComponent xDrawDoc; @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { log.println("creating a drawdoc"); xDrawDoc = DrawTools.createDrawDoc( tParam.getMSF()); diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoText.java b/qadevOOo/tests/java/mod/_svx/SvxUnoText.java index 24129de5461b..2db7983a1525 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoText.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoText.java @@ -21,7 +21,6 @@ package mod._svx; import com.sun.star.text.XText; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -55,15 +54,9 @@ public class SvxUnoText extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java index 4f8bceb6596c..3550663a4aca 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -54,15 +53,9 @@ public class SvxUnoTextContent extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java index a4a6f417a5d8..b640c95d6073 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java @@ -52,15 +52,9 @@ public class SvxUnoTextContentEnum extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java index 4564acbf829f..ec367094a253 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java @@ -51,15 +51,9 @@ public class SvxUnoTextCursor extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java index 94a9e5d43ab9..f9ffe6726b7b 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,16 +60,9 @@ public class SvxUnoTextField extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc( tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc( tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java index 3dc975bf156a..313921f29c03 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -54,15 +53,9 @@ public class SvxUnoTextRange extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java index cc571513983a..8fe19154298c 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java @@ -20,7 +20,6 @@ package mod._svx; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -54,15 +53,9 @@ public class SvxUnoTextRangeEnumeration extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - try { - log.println( "creating a drawdoc" ); - xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + log.println( "creating a drawdoc" ); + xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF()); } /** diff --git a/qadevOOo/tests/java/mod/_sw/CharacterStyle.java b/qadevOOo/tests/java/mod/_sw/CharacterStyle.java index 34271e7b2b1c..085f9c9ba122 100644 --- a/qadevOOo/tests/java/mod/_sw/CharacterStyle.java +++ b/qadevOOo/tests/java/mod/_sw/CharacterStyle.java @@ -34,7 +34,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -54,15 +53,10 @@ public class CharacterStyle extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/ConditionalParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java index 6c98dfd16f8c..15b0b8faa1c1 100644 --- a/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java +++ b/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java @@ -56,15 +56,10 @@ public class ConditionalParagraphStyle extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/PageStyle.java b/qadevOOo/tests/java/mod/_sw/PageStyle.java index 30b12f03baaf..6c5816418ee2 100644 --- a/qadevOOo/tests/java/mod/_sw/PageStyle.java +++ b/qadevOOo/tests/java/mod/_sw/PageStyle.java @@ -34,7 +34,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -56,15 +55,10 @@ public class PageStyle extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/ParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java index 5c4ca3b200cf..d0aeb41f3eb9 100644 --- a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java +++ b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java @@ -33,7 +33,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -56,15 +55,10 @@ public class ParagraphStyle extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwAccessibleDocumentPageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java index c04359569b6c..aecb7c640c74 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java @@ -153,7 +153,7 @@ public class SwAccessibleDocumentPageView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc( Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java index 5d62551fc91d..4fdb2d8a9102 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java @@ -161,7 +161,7 @@ public class SwAccessibleDocumentView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java index 9b47147f4983..15c42c68310d 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java @@ -148,7 +148,7 @@ public class SwAccessibleEndnoteView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java index 2e6e52d9efdf..63d1ffdf33b8 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java @@ -151,7 +151,7 @@ public class SwAccessibleFooterView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java index 6a0319b11330..29f36a6185ea 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java @@ -149,7 +149,7 @@ public class SwAccessibleFootnoteView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java index 7353251f3881..746d47514843 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java @@ -141,7 +141,7 @@ public class SwAccessibleHeaderView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java index a8e6c3d16ffa..62f6e8454e3b 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java @@ -207,7 +207,7 @@ public class SwAccessiblePageView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java index adb42c5951ac..01af4ed5da56 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java @@ -119,7 +119,7 @@ public class SwAccessibleParagraphView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc( Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java index fac1a8659753..c16f1f497eec 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java @@ -122,7 +122,7 @@ public class SwAccessibleTableCellView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println("creating a text document"); xTextDoc = WriterTools.createTextDoc( Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java index f8aa53ca8be1..1d47445ce79a 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java @@ -139,7 +139,7 @@ public class SwAccessibleTableView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java index e4dbf6202302..e7ce3df98a40 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java @@ -132,7 +132,7 @@ public class SwAccessibleTextEmbeddedObject extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "open a text document" ); String testdoc = utils.getFullTestURL("SwXTextEmbeddedObject.sxw"); log.println(testdoc); diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java index 72498e32506f..133cfcb78e21 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java @@ -158,7 +158,7 @@ public class SwAccessibleTextFrameView extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java index 9458e0e42b72..0292396eaa80 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java @@ -148,7 +148,7 @@ public class SwAccessibleTextGraphicObject extends TestCase { * @see #initializeTestCase */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println( "creating a text document" ); xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java index 77dcfb70a533..188307e83ed6 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java +++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -73,16 +72,11 @@ public class SwXAutoTextEntry extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { XMultiServiceFactory msf = tParam.getMSF(); SOfficeFactory SOF = SOfficeFactory.getFactory( msf ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXAutoTextGroup.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java index 827c157960dd..eb9ff16e02ad 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java +++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java @@ -22,7 +22,6 @@ import com.sun.star.container.XNameAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -72,15 +71,10 @@ public class SwXAutoTextGroup extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXBodyText.java b/qadevOOo/tests/java/mod/_sw/SwXBodyText.java index 04299ccdb15f..e79c25993429 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXBodyText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXBodyText.java @@ -73,15 +73,10 @@ public class SwXBodyText extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXBookmark.java b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java index a1dcfccbb209..a322cfe8fe81 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java +++ b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -60,15 +59,10 @@ public class SwXBookmark extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXBookmarks.java b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java index 3f56f856f766..3c830212e7cc 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java +++ b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java @@ -56,15 +56,10 @@ public class SwXBookmarks extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXCell.java b/qadevOOo/tests/java/mod/_sw/SwXCell.java index f8906bd34384..6773e5d594ee 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXCell.java +++ b/qadevOOo/tests/java/mod/_sw/SwXCell.java @@ -55,15 +55,10 @@ public class SwXCell extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXCellRange.java b/qadevOOo/tests/java/mod/_sw/SwXCellRange.java index fc08a8db26ba..7b60a1f6c770 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXCellRange.java +++ b/qadevOOo/tests/java/mod/_sw/SwXCellRange.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -57,15 +56,10 @@ public class SwXCellRange extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXChapterNumbering.java b/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java index 2c55e0e6829b..b219a82a01cf 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java +++ b/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java @@ -59,15 +59,10 @@ public class SwXChapterNumbering extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXDocumentIndex.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java index f0022d98a547..94ff90072a30 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,15 +64,10 @@ public class SwXDocumentIndex extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXDocumentIndexMark.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java index 8d02891be7b6..1e18e920f6d6 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,15 +65,10 @@ public class SwXDocumentIndexMark extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXDocumentIndexes.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java index 06079771642b..06459e4d7148 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -59,15 +58,10 @@ public class SwXDocumentIndexes extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXDrawPage.java b/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java index 08d8fac5ce9c..d6d44644e464 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java @@ -84,15 +84,10 @@ public class SwXDrawPage extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXEndnoteProperties.java b/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java index 93384a5a2396..1d2d296d965e 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java +++ b/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -56,15 +55,10 @@ public class SwXEndnoteProperties extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXFieldEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java index 4d7ace0e9651..dcfbf1c2f81e 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java @@ -56,15 +56,10 @@ public class SwXFieldEnumeration extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXFieldMaster.java b/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java index 15a1ede053f6..ce1009e05248 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java @@ -54,15 +54,10 @@ public class SwXFieldMaster extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXFootnote.java b/qadevOOo/tests/java/mod/_sw/SwXFootnote.java index cc9e5b3d0f0d..745e3d69c9f3 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnote.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnote.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -73,15 +72,10 @@ public class SwXFootnote extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXFootnoteProperties.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java index da6a26988e06..c86bc30c7fff 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -55,15 +54,10 @@ public class SwXFootnoteProperties extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXFootnoteText.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java index e8f5b7cfdc83..bd403ac47032 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -77,15 +76,10 @@ public class SwXFootnoteText extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXFootnotes.java b/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java index c9ba3cd560e0..5c11113d690c 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -58,15 +57,10 @@ public class SwXFootnotes extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXFrames.java b/qadevOOo/tests/java/mod/_sw/SwXFrames.java index 46eb784e421a..5a85e0bfe376 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFrames.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFrames.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,15 +60,10 @@ public class SwXFrames extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXHeadFootText.java b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java index 598d8fd4d088..7dbfb90db3ed 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -79,15 +78,10 @@ public class SwXHeadFootText extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXLineNumberingProperties.java b/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java index 98524cec5281..815493062149 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java +++ b/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java @@ -54,15 +54,10 @@ public class SwXLineNumberingProperties extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXNumberingRules.java b/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java index 38f808593c23..46ee58a639c6 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java +++ b/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,15 +67,10 @@ public class SwXNumberingRules extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXParagraph.java b/qadevOOo/tests/java/mod/_sw/SwXParagraph.java index 2519357f0cbf..165e270454ef 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXParagraph.java +++ b/qadevOOo/tests/java/mod/_sw/SwXParagraph.java @@ -84,14 +84,6 @@ import com.sun.star.util.XCloseable; public class SwXParagraph extends TestCase { XTextDocument xTextDoc; - /** - * Creates text document. - */ - @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - - } - @Override protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); diff --git a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java index d777385f638f..3e17bfce35fe 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java @@ -54,15 +54,10 @@ public class SwXParagraphEnumeration extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXPrintSettings.java b/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java index 5c749b9b1920..109b947f6bb5 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java +++ b/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -51,15 +50,10 @@ public class SwXPrintSettings extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXReferenceMark.java b/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java index 498d2257a504..8b257ba13342 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java +++ b/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,15 +60,10 @@ public class SwXReferenceMark extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXReferenceMarks.java b/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java index cb0cb2ca8977..40b99adeccc1 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java +++ b/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -62,15 +61,10 @@ public class SwXReferenceMarks extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXShape.java b/qadevOOo/tests/java/mod/_sw/SwXShape.java index f1ec1650f789..e3309db612cf 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXShape.java +++ b/qadevOOo/tests/java/mod/_sw/SwXShape.java @@ -66,15 +66,10 @@ public class SwXShape extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXStyle.java b/qadevOOo/tests/java/mod/_sw/SwXStyle.java index 7a270161af86..4bf2823be153 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXStyle.java +++ b/qadevOOo/tests/java/mod/_sw/SwXStyle.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,15 +68,10 @@ public class SwXStyle extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXStyleFamilies.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java index 4b51b1a72b33..ebbc4690aa69 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java +++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java @@ -58,15 +58,10 @@ public class SwXStyleFamilies extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXStyleFamily.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java index d37ba1a3382c..c785ebd84505 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java +++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,15 +67,10 @@ public class SwXStyleFamily extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXTableCellText.java b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java index b4a101d60840..336aba189eea 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java @@ -76,15 +76,10 @@ public class SwXTableCellText extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXTableColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java index e26d9a6ed986..2acfbf586137 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java @@ -62,15 +62,10 @@ public class SwXTableColumns extends TestCase { * Creates text document. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - try { - log.println( "creating a textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXTableRows.java b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java index 414d0b4f78b7..1dc1be9d251c 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java @@ -57,15 +57,10 @@ public class SwXTableRows extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXTextColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java index 81474c2d5fc8..d198e44684d7 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -63,15 +62,10 @@ public class SwXTextColumns extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXTextCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java index 986ed46c5804..34764a4673f2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; import java.util.ArrayList; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -96,16 +95,10 @@ public class SwXTextCursor extends TestCase { * Creates text 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 textdocument"); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - 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/_sw/SwXTextDefaults.java b/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java index e5befe70c58d..1b02f44d3510 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java @@ -21,7 +21,6 @@ package mod._sw; //API Interfaces import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -90,15 +89,10 @@ public class SwXTextDefaults extends TestCase { * Creates text 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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - } catch ( com.sun.star.uno.Exception e ) { - 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/_sw/SwXTextDocument.java b/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java index bc2e72043ffd..ef93bddefa25 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java @@ -52,10 +52,6 @@ public class SwXTextDocument extends TestCase { XTextDocument xSecondTextDoc; @Override - protected void initialize(TestParameters tParam, PrintWriter log) { - } - - @Override protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); DesktopTools.closeDoc(xSecondTextDoc); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java index 1af8fac9a1a5..4b0e3ae7239b 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java @@ -52,16 +52,9 @@ public class SwXTextEmbeddedObjects extends TestCase { * */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - - try { - oDoc = 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 ); - } + oDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextField.java b/qadevOOo/tests/java/mod/_sw/SwXTextField.java index 5b9762d176e0..61afb8e30e5a 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextField.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextField.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -61,17 +60,10 @@ public class SwXTextField extends TestCase { * */ @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 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/_sw/SwXTextFieldMasters.java b/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java index 5e46b95b0a65..3f6d70705a41 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java @@ -57,17 +57,10 @@ public class SwXTextFieldMasters extends TestCase { * */ @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 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/_sw/SwXTextFieldTypes.java b/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java index b3e3d840b0bf..03cb9721e750 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java @@ -55,17 +55,11 @@ public class SwXTextFieldTypes extends TestCase { * */ @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 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/_sw/SwXTextFrame.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java index f7a7edf60731..e3eb3c2996bf 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java @@ -19,7 +19,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,17 +45,10 @@ public class SwXTextFrame extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextFrameText.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java index 550ddb28d11d..1b12794f0783 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -53,17 +52,11 @@ public class SwXTextFrameText extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java index c3e6abb95235..695bf61480da 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -54,16 +53,10 @@ public class SwXTextGraphicObject extends TestCase { * */ @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 textdoc"); - xTextDoc = SOF.createTextDoc(null); - } catch (Exception e) { - // Some exception occurs.FAILED - e.printStackTrace(log); - throw new StatusException("Couldn't create document", e); - } + log.println("creating a textdoc"); + xTextDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java index bbe03ca0ff4c..7e3a6dbb59cc 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -53,16 +52,10 @@ public class SwXTextGraphicObjects extends TestCase { * */ @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 textdoc"); - xTextDoc = SOF.createTextDoc(null); - } catch (Exception e) { - // Some exception occurs.FAILED - e.printStackTrace(log); - throw new StatusException("Couldn't create document", e); - } + log.println("creating a textdoc"); + xTextDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java index 743fca64dae9..9a887af483ea 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,17 +48,10 @@ public class SwXTextPortion extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextPortionEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java index c6981c6ea748..5956041a1d4e 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,17 +48,11 @@ public class SwXTextPortionEnumeration extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextRange.java b/qadevOOo/tests/java/mod/_sw/SwXTextRange.java index 9763a65be82e..e96c722b4f6c 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextRange.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextRange.java @@ -36,17 +36,10 @@ public class SwXTextRange extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextRanges.java b/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java index 3e144bd1053c..32e97b47dfb1 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,17 +45,11 @@ public class SwXTextRanges extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextSearch.java b/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java index 95ac863cbae1..0ca1bbef7369 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,17 +46,10 @@ public class SwXTextSearch extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextSection.java b/qadevOOo/tests/java/mod/_sw/SwXTextSection.java index 04edd59d08d8..9fd67a72a0a6 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextSection.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextSection.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -57,17 +56,10 @@ public class SwXTextSection extends TestCase { XTextDocument xTextDoc; @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); - - try { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); 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 ); - } } @Override diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java b/qadevOOo/tests/java/mod/_sw/SwXTextSections.java index e67512eaca24..c00d0cb5ed94 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextSections.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,17 +45,10 @@ public class SwXTextSections extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextTable.java b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java index 6eec214b137c..7e52e7383a4d 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java @@ -19,7 +19,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,17 +48,11 @@ public class SwXTextTable extends TestCase { XTextDocument xTextDoc; @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { SOF = SOfficeFactory.getFactory( tParam.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/_sw/SwXTextTableCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java index a664fee0586d..6417a9a3e2ff 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java @@ -41,17 +41,11 @@ public class SwXTextTableCursor extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextTableRow.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java index 2f927d76ed1a..a8f4144f2047 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -43,17 +42,11 @@ public class SwXTextTableRow extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextTables.java b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java index 83d79de992e1..28ad076e4f98 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -45,17 +44,11 @@ public class SwXTextTables extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXTextView.java b/qadevOOo/tests/java/mod/_sw/SwXTextView.java index ef07976ba612..9c8ea4b0ed05 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextView.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextView.java @@ -77,19 +77,12 @@ public class SwXTextView extends TestCase { * */ @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 textdocument" ); - xTextDoc = SOF.createTextDoc( null ); - debug = tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE); - - } 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 ); + debug = tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE); } /** diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java index 312f71cfc10e..1ee16ff4e136 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -52,17 +51,11 @@ public class SwXTextViewCursor extends TestCase { XTextDocument xTextDoc; @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 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/_sw/SwXViewSettings.java b/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java index 19381de9928d..b1ea4407c099 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java +++ b/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -42,17 +41,11 @@ public class SwXViewSettings extends TestCase { XTextDocument xTextDoc; @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 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/_sw/XMLContentExporter.java b/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java index 25d613ec5023..e05a117a0c4e 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,17 +67,11 @@ public class XMLContentExporter extends TestCase { * New text document created. */ @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 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/_sw/XMLContentImporter.java b/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java index 2dc2f9a4c931..e10549ced72c 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,17 +63,11 @@ public class XMLContentImporter extends TestCase { * New text document created. */ @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 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/_sw/XMLExporter.java b/qadevOOo/tests/java/mod/_sw/XMLExporter.java index 442ffa1cc751..4cee8fb68fe4 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLExporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,17 +67,11 @@ public class XMLExporter extends TestCase { * New text document created. */ @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 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/_sw/XMLImporter.java b/qadevOOo/tests/java/mod/_sw/XMLImporter.java index 74c04d5c23bc..92291cde6431 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLImporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,17 +64,11 @@ public class XMLImporter extends TestCase { * New text document created. */ @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 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/_sw/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java index 2ff5be6bb59e..7c4b7df26fe1 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,17 +68,10 @@ public class XMLMetaExporter extends TestCase { * New text document created. */ @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 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/_sw/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java index 04f94500d5b1..354444f82eeb 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,17 +65,11 @@ public class XMLMetaImporter extends TestCase { * New text document created. */ @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 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/_sw/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java index c6570fe99665..f736f58693a6 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,19 +69,11 @@ public class XMLSettingsExporter extends TestCase { * New text document created. */ @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 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/_sw/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java index ee8b794d6cd4..0c10e971a25b 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,17 +66,11 @@ public class XMLSettingsImporter extends TestCase { * New text document created. */ @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 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/_sw/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java index c00a4a208fd8..6a669296a91c 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,17 +67,11 @@ public class XMLStylesExporter extends TestCase { * New text document created. */ @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 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/_sw/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java index a55fe1d26b2b..c51f1d2e01ff 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java @@ -20,7 +20,6 @@ package mod._sw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,17 +65,11 @@ public class XMLStylesImporter extends TestCase { * New text document created. */ @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 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/_tcv/TypeConverter.java b/qadevOOo/tests/java/mod/_tcv/TypeConverter.java index 0730eb974032..e0019b8ea60f 100644 --- a/qadevOOo/tests/java/mod/_tcv/TypeConverter.java +++ b/qadevOOo/tests/java/mod/_tcv/TypeConverter.java @@ -30,11 +30,6 @@ import com.sun.star.uno.XInterface; public class TypeConverter extends TestCase { - @Override - protected void initialize ( TestParameters Param, PrintWriter log) { - - } - /** * creating a TestEnvironment for the interfaces to be tested */ diff --git a/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java b/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java index ab74d8efa908..f2e2a283173c 100644 --- a/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java +++ b/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java @@ -33,11 +33,6 @@ import com.sun.star.uno.XInterface; public class TypeDescriptionManager extends TestCase { - @Override - protected void initialize ( TestParameters Param, PrintWriter log) { - - } - /** * creating a TestEnvironment for the interfaces to be tested */ diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java index 37e0e2762b49..be06bc819e96 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java @@ -37,7 +37,6 @@ import com.sun.star.util.XURLTransformer; import java.io.PrintWriter; -import lib.StatusException; import lib.TestEnvironment; import lib.TestParameters; import util.AccessibilityTools; @@ -169,14 +168,10 @@ public class AccessibleButton extends lib.TestCase { * Opens new writer document. */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java index 6b52387b0a7f..343953e8e542 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java @@ -187,10 +187,6 @@ public class AccessibleCheckBox extends TestCase { } } - @Override - protected void initialize(TestParameters Param, PrintWriter log) { - } - /** * Thread for opening modal dialog 'Insert Table'. */ diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java index 09452072b1b5..da256abbbd25 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java @@ -37,7 +37,6 @@ import com.sun.star.util.XURLTransformer; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -168,14 +167,10 @@ public class AccessibleComboBox extends TestCase { * Creates writer doc */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java index 1cdd83a21080..d1b465c0e6a5 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java @@ -27,7 +27,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -108,14 +107,10 @@ public class AccessibleDropDownComboBox extends TestCase { * Creates writer document. */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java index 3daf7f9f2151..7adcc1c2ede3 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java @@ -109,16 +109,12 @@ public class AccessibleDropDownListBox extends TestCase { * Creates writer document. */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - // Dock the Navigator to supply an AccessibleDropDownListBox - DesktopTools.dockNavigator(Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + // Dock the Navigator to supply an AccessibleDropDownListBox + DesktopTools.dockNavigator(Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java index 935df4482fa7..d28592b6c5d9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java @@ -37,7 +37,6 @@ import com.sun.star.util.XURLTransformer; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -187,13 +186,9 @@ public class AccessibleEdit extends TestCase { * Creates writer document */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java index 2d800168fb31..f88b7dbe13d8 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java @@ -39,7 +39,6 @@ import com.sun.star.util.XURLTransformer; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -183,14 +182,10 @@ public class AccessibleList extends TestCase { * Creates writer document */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - msf = Param.getMSF(); + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + msf = Param.getMSF(); - SOfficeFactory SOF = SOfficeFactory.getFactory(msf); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + SOfficeFactory SOF = SOfficeFactory.getFactory(msf); + xTextDoc = SOF.createTextDoc(null); } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java index b829eee9ee62..dcbef787f591 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java @@ -37,7 +37,6 @@ import com.sun.star.util.XURLTransformer; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -198,13 +197,9 @@ public class AccessibleListBox extends TestCase { * Creates writer document */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java index b14b56468404..58726c3660a3 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java @@ -38,7 +38,6 @@ import com.sun.star.util.XURLTransformer; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -190,13 +189,9 @@ public class AccessibleListItem extends TestCase { * Creates writer document */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java index e452adf0e732..b050f6108c02 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java @@ -155,10 +155,4 @@ public class AccessibleMenu extends TestCase { } } - /** - * Creates a new writer document - */ - @Override - protected void initialize(TestParameters Param, PrintWriter log) { - } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java index ab730c631d55..d500503940dc 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java @@ -28,7 +28,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -111,14 +110,10 @@ public class AccessibleMenuBar extends TestCase { * Creates writer document. */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - SOfficeFactory SOF = SOfficeFactory.getFactory( - Param.getMSF()); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + SOfficeFactory SOF = SOfficeFactory.getFactory( + Param.getMSF()); + xTextDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java index 9f36d0f90a97..0e9fa36ead53 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java @@ -31,7 +31,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -149,15 +148,11 @@ public class AccessibleMenuItem extends TestCase { * Creates writer document. */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - msf = Param.getMSF(); + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + msf = Param.getMSF(); - SOfficeFactory SOF = SOfficeFactory.getFactory(msf); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + SOfficeFactory SOF = SOfficeFactory.getFactory(msf); + xTextDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java index 3000e38dbe6d..48e14436f3fc 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java @@ -30,7 +30,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -125,15 +124,11 @@ public class AccessibleMenuSeparator extends TestCase { * Creates writer document. */ @Override - protected void initialize(TestParameters Param, PrintWriter log) { - try { - msf = Param.getMSF(); + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + msf = Param.getMSF(); - SOfficeFactory SOF = SOfficeFactory.getFactory(msf); - xTextDoc = SOF.createTextDoc(null); - } catch (com.sun.star.uno.Exception e) { - throw new StatusException("Can't create document", e); - } + SOfficeFactory SOF = SOfficeFactory.getFactory(msf); + xTextDoc = SOF.createTextDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java index ed7d506c23bb..e5d115765a0f 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java @@ -50,7 +50,7 @@ public class AccessiblePopupMenu 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop(Param.getMSF())); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java index 56ba232676a0..9dff232782b2 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java @@ -89,7 +89,7 @@ public class AccessibleRadioButton 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java index e1ec484ab068..393bb0d6886f 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java @@ -76,7 +76,7 @@ public class AccessibleScrollBar 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java index 09265fa7c9e2..6b2bb95ddd4b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java @@ -76,7 +76,7 @@ public class AccessibleStatusBarItem 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java index a96933bd3134..5fe895cef8ce 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java @@ -83,7 +83,7 @@ public class AccessibleTabControl 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java index 1069383ccdd8..4cf485842354 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java @@ -78,7 +78,7 @@ public class AccessibleTabPage 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java index 121295bf5f19..cf9462534c79 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java @@ -30,7 +30,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -63,13 +62,13 @@ import util.SOfficeFactory; * @see ifc.accessibility._XAccessibleExtendedComponent */ public class AccessibleToolBox extends TestCase { - private static XTextDocument xTextDoc; + private XTextDocument xTextDoc; /** * 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); @@ -110,7 +109,7 @@ public class AccessibleToolBox extends TestCase { */ @Override protected TestEnvironment createTestEnvironment(TestParameters tParam, - PrintWriter log) { + PrintWriter log) throws Exception { log.println("creating a test environment"); if (xTextDoc != null) { @@ -122,14 +121,8 @@ public class AccessibleToolBox extends TestCase { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory(msf); - try { - log.println("creating a text document"); - 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 text document"); + xTextDoc = SOF.createTextDoc(null); XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java index c0c35d3ae8e0..6f6b27c99b4c 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java @@ -80,7 +80,7 @@ public class AccessibleToolBoxItem 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java index fd59b064bd43..a2ed1235caca 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java @@ -82,7 +82,7 @@ public class AccessibleWindow 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 { UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( Param.getMSF())); diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java index 4c868ab888c8..e07464b48477 100644 --- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java @@ -41,7 +41,7 @@ public class MutableTreeDataModel extends TestCase { * Creates StarOffice 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/_toolkit/MutableTreeNode.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java index 57c74858181c..1f13e42b1ebe 100644 --- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java +++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java @@ -46,7 +46,7 @@ public class MutableTreeNode extends TestCase { * Creates StarOffice Writer document. */ @Override - protected void initialize(TestParameters tParam, PrintWriter log) { + protected void initialize(TestParameters tParam, PrintWriter log) throws Exception { mxMSF = tParam.getMSF(); } diff --git a/qadevOOo/tests/java/mod/_toolkit/TabController.java b/qadevOOo/tests/java/mod/_toolkit/TabController.java index 49523a7a8e17..b7708046de8b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/TabController.java +++ b/qadevOOo/tests/java/mod/_toolkit/TabController.java @@ -32,7 +32,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,16 +45,10 @@ public class TabController extends TestCase { private static XTextDocument xTextDoc = null; @Override - protected void initialize(TestParameters param, PrintWriter log) { - try { - log.println("creating a textdocument"); - xTextDoc = WriterTools.createTextDoc( - param.getMSF()); - } catch (Exception e) { - // Some exception occurs.FAILED - e.printStackTrace(log); - throw new StatusException("Couldn't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + log.println("creating a textdocument"); + xTextDoc = WriterTools.createTextDoc( + Param.getMSF()); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java index 5f6554eb90e7..1c227f0b378a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java @@ -23,7 +23,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -36,15 +35,9 @@ public class TabControllerModel extends TestCase { private static XTextDocument xTextDoc; @Override - protected void initialize(TestParameters param, PrintWriter log) { - try { - log.println("creating a textdocument"); - xTextDoc = WriterTools.createTextDoc( - param.getMSF()); - } catch (Exception e) { - e.printStackTrace(log); - throw new StatusException("Couldn't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + log.println("creating a textdocument"); + xTextDoc = WriterTools.createTextDoc(Param.getMSF()); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/Toolkit.java b/qadevOOo/tests/java/mod/_toolkit/Toolkit.java index 3d2ca327fa1a..346ef21f524c 100644 --- a/qadevOOo/tests/java/mod/_toolkit/Toolkit.java +++ b/qadevOOo/tests/java/mod/_toolkit/Toolkit.java @@ -30,7 +30,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -48,18 +47,12 @@ public class Toolkit extends TestCase { private static 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/_toolkit/UnoControlButton.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java index f5aebd1b62fa..3522c9629024 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -48,20 +47,14 @@ public class UnoControlButton extends TestCase { private static XTextDocument xTD2; @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); - xTD2 = WriterTools.createTextDoc( - Param.getMSF()); - } 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); + xTD2 = WriterTools.createTextDoc( + Param.getMSF()); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java index 6ad7f14a533d..24be3535dc8c 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java @@ -36,7 +36,7 @@ public class UnoControlButtonModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlCheckBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java index 082686089a10..0132bd4b0dd7 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java @@ -34,7 +34,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,20 +48,14 @@ public class UnoControlCheckBox extends TestCase { private static XTextDocument xTD2; @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); - xTD2 = WriterTools.createTextDoc( - Param.getMSF()); - } 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); + xTD2 = WriterTools.createTextDoc( + Param.getMSF()); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java index bb7a336339c6..0a29307562fe 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java @@ -36,7 +36,7 @@ public class UnoControlCheckBoxModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlComboBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java index cdf41c1a650c..243e90c26897 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java @@ -19,7 +19,6 @@ package mod._toolkit; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,17 +46,11 @@ public class UnoControlComboBox extends TestCase { private static 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/_toolkit/UnoControlComboBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java index e96dc32a5a4c..7c64773211ef 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java @@ -37,7 +37,7 @@ public class UnoControlComboBoxModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlContainer.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java index 1dd4c9be253e..7c872dfaa1b2 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java @@ -37,7 +37,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -53,18 +52,12 @@ public class UnoControlContainer extends TestCase { private static XControl xCtrl2; @Override - protected void initialize(TestParameters param, PrintWriter log) { - try { - log.println("creating a textdocument"); - xTD2 = WriterTools.createTextDoc( - param.getMSF()); - xTextDoc = WriterTools.createTextDoc( - param.getMSF()); - } catch (Exception e) { - // Some exception occurs.FAILED - e.printStackTrace(log); - throw new StatusException("Couldn't create document", e); - } + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { + log.println("creating a textdocument"); + xTD2 = WriterTools.createTextDoc( + Param.getMSF()); + xTextDoc = WriterTools.createTextDoc( + Param.getMSF()); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java index 715d357b8260..60c65000c67e 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,12 @@ public class UnoControlCurrencyField extends TestCase { private static 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/_toolkit/UnoControlCurrencyFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java index 9f7288e6c31d..65f9b528c5cf 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java @@ -37,7 +37,7 @@ public class UnoControlCurrencyFieldModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlDateField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java index cadd6e81d4e2..f9abc3c69523 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java @@ -34,7 +34,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -49,20 +48,14 @@ public class UnoControlDateField extends TestCase { private static XTextDocument xTD2; @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); - xTD2 = WriterTools.createTextDoc( - Param.getMSF()); - } 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); + xTD2 = WriterTools.createTextDoc( + Param.getMSF()); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java index ba544e6e0dcd..82344269d216 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java @@ -37,7 +37,7 @@ public class UnoControlDateFieldModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlDialog.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java index c47c188f8fbf..2f0e6ddc7055 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java @@ -34,7 +34,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -232,17 +231,11 @@ public class UnoControlDialog extends TestCase { } @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 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/_toolkit/UnoControlEdit.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java index dda2dc7d93c6..0199acd57d20 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,12 @@ public class UnoControlEdit extends TestCase { private static 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/_toolkit/UnoControlEditModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java index c6ea96236e16..e312b64a62b8 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java @@ -37,7 +37,7 @@ public class UnoControlEditModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlFileControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java index 78d68ebf4683..ab4486a7022c 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,12 @@ public class UnoControlFileControl extends TestCase { private static 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/_toolkit/UnoControlFileControlModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java index dbf9ed2002e2..63f2a8309f87 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java @@ -37,7 +37,7 @@ public class UnoControlFileControlModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlFixedText.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java index 513cefcdaedf..16951a36c0c8 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java @@ -32,7 +32,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,18 +45,12 @@ public class UnoControlFixedText extends TestCase { private static 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/_toolkit/UnoControlFixedTextModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java index e89d25f81ab5..9433d8c269da 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java @@ -37,7 +37,7 @@ public class UnoControlFixedTextModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlFormattedField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java index 56e618c85a04..d2091caba9ba 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java @@ -34,7 +34,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -48,18 +47,12 @@ public class UnoControlFormattedField extends TestCase { private static 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/_toolkit/UnoControlFormattedFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java index f11aad0da981..bb5e1b35516e 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java @@ -37,7 +37,7 @@ public class UnoControlFormattedFieldModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlGroupBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java index d7f42e67506f..7140856965bd 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java @@ -32,7 +32,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,18 +45,12 @@ public class UnoControlGroupBox extends TestCase { private static 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/_toolkit/UnoControlGroupBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java index e5a09850f0db..1a6cae71e89b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java @@ -37,7 +37,7 @@ public class UnoControlGroupBoxModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlImageControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java index fb0310834cec..ea320d04324c 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,12 @@ public class UnoControlImageControl extends TestCase { private static 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/_toolkit/UnoControlListBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java index 5c55eeb47836..1d733bd06bb9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,12 @@ public class UnoControlListBox extends TestCase { private static 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/_toolkit/UnoControlListBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java index 56f56950e064..a0d26319c77a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java @@ -37,7 +37,7 @@ public class UnoControlListBoxModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlNumericField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java index a380485c162b..073b637563d5 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java @@ -19,7 +19,6 @@ package mod._toolkit; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -48,17 +47,11 @@ public class UnoControlNumericField extends TestCase { private static 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/_toolkit/UnoControlNumericFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java index 60341182f460..bcee5feaff58 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java @@ -37,7 +37,7 @@ public class UnoControlNumericFieldModel extends TestCase { * Creates StarOffice 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/_toolkit/UnoControlPatternField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java index 0d69ca52afc4..72a86437331a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,12 @@ public class UnoControlPatternField extends TestCase { private static 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/_toolkit/UnoControlRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java index 32ab02c96df0..1f13ae6c07ff 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java @@ -32,7 +32,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -46,18 +45,12 @@ public class UnoControlRadioButton extends TestCase { private static 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/_toolkit/UnoControlTimeField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java index bbeefb3a2a5a..574330987acf 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java @@ -33,7 +33,6 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -47,18 +46,12 @@ public class UnoControlTimeField extends TestCase { private static 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/_toolkit/UnoScrollBarControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java index f5f4def73b22..2fae7a210c6e 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java @@ -37,7 +37,6 @@ import java.awt.Dimension; import java.awt.Toolkit; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -51,36 +50,29 @@ public class UnoScrollBarControl extends TestCase { private static 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); + log.println("creating a textdocument"); + xTextDoc = SOF.createTextDoc(null); - log.println("maximize the window size"); - XModel xModel = UnoRuntime.queryInterface(XModel.class, xTextDoc); - XFrame xFrame = xModel.getCurrentController().getFrame(); - XWindow xWin = xFrame.getContainerWindow(); + log.println("maximize the window size"); + XModel xModel = UnoRuntime.queryInterface(XModel.class, xTextDoc); + XFrame xFrame = xModel.getCurrentController().getFrame(); + XWindow xWin = xFrame.getContainerWindow(); - Toolkit.getDefaultToolkit(); - Dimension dim = new Dimension(800, 600); + Toolkit.getDefaultToolkit(); + Dimension dim = new Dimension(800, 600); - Rectangle newPosSize = xWin.getPosSize(); - newPosSize.Width = new Double(dim.getWidth()).intValue(); - newPosSize.Height = new Double(dim.getHeight()).intValue(); - newPosSize.X = 0; - newPosSize.Y = 0; + Rectangle newPosSize = xWin.getPosSize(); + newPosSize.Width = new Double(dim.getWidth()).intValue(); + newPosSize.Height = new Double(dim.getHeight()).intValue(); + newPosSize.X = 0; + newPosSize.Y = 0; - xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, - newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE); - - } catch (com.sun.star.uno.Exception e) { - // Some exception occurs.FAILED - e.printStackTrace(log); - throw new StatusException("Couldn't create document", e); - } + xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, + newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java index 4f04480c38e0..df8506f9ee2b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java @@ -44,7 +44,7 @@ public class UnoSpinButtonControl extends TestCase { private static XTextDocument xTextDoc; @Override - protected void initialize(TestParameters Param, PrintWriter log) { + protected void initialize(TestParameters Param, PrintWriter log) throws Exception { log.println("creating a textdocument"); xTextDoc = WriterTools.createTextDoc( Param.getMSF()); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java index 1fc6c51fe8c5..bb488febd00e 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java @@ -39,7 +39,6 @@ import com.sun.star.uno.XInterface; import java.io.PrintWriter; import java.util.Comparator; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -52,18 +51,12 @@ public class UnoTreeControl extends TestCase { private static XMultiServiceFactory mxMSF; @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"); - 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"); + SOF.createTextDoc(null); } @Override diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java index f109a1961f08..bb7534ebdae7 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java @@ -37,7 +37,7 @@ public class UnoTreeModel extends TestCase { * Creates StarOffice 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/_typeconverter/uno/TypeConverter.java b/qadevOOo/tests/java/mod/_typeconverter/uno/TypeConverter.java index 28b1e8f0ce01..775c6bad5c09 100644 --- a/qadevOOo/tests/java/mod/_typeconverter/uno/TypeConverter.java +++ b/qadevOOo/tests/java/mod/_typeconverter/uno/TypeConverter.java @@ -27,11 +27,6 @@ import lib.TestParameters; public class TypeConverter extends TestCase { - @Override - protected void initialize ( TestParameters Param, PrintWriter log) { - - } - /** * creating a TestEnvironment for the interfaces to be tested */ diff --git a/qadevOOo/tests/java/mod/_typemgr/uno/TypeDescriptionManager.java b/qadevOOo/tests/java/mod/_typemgr/uno/TypeDescriptionManager.java index 9fc7226fc414..8fd210c0a026 100644 --- a/qadevOOo/tests/java/mod/_typemgr/uno/TypeDescriptionManager.java +++ b/qadevOOo/tests/java/mod/_typemgr/uno/TypeDescriptionManager.java @@ -30,11 +30,6 @@ import lib.TestParameters; public class TypeDescriptionManager extends TestCase { - @Override - protected void initialize ( TestParameters Param, PrintWriter log) { - - } - /** * creating a TestEnvironment for the interfaces to be tested */ diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java index 1ada4c62e20d..9edbe3aa3f3b 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Chart; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,19 +66,13 @@ public class XMLContentExporter extends TestCase { * New text document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java index afbc16f9da08..1481e01346c9 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Chart; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,18 +65,12 @@ public class XMLContentImporter extends TestCase { * New chart document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a chartdocument" ); + xChartDoc = SOF.createChartDoc(); comp = xChartDoc; } diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java index b9bdca5257d9..6a4eda29210b 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Chart; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -67,19 +66,13 @@ public class XMLExporter extends TestCase { * New text document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java index cf6e1110c2ca..eb60684b8004 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Chart; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,18 +65,12 @@ public class XMLImporter extends TestCase { * New chart document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a chartdocument" ); + xChartDoc = SOF.createChartDoc(); comp = xChartDoc; } diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java index 77abde8f3d0c..66f46ba52166 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Chart; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,19 +65,13 @@ public class XMLStylesExporter extends TestCase { * New text document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a chartdocument" ); + xChartDoc = SOF.createChartDoc(); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java index ef2d684c94ec..4944e1806535 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Chart; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -64,18 +63,12 @@ public class XMLStylesImporter extends TestCase { * New chart document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a chartdocument" ); - xChartDoc = SOF.createChartDoc(); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a chartdocument" ); + xChartDoc = SOF.createChartDoc(); comp = xChartDoc; } diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java index fb10b042754d..98992f53ce5b 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,17 +69,11 @@ public class XMLContentExporter extends TestCase { * New text document created. */ @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 drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java index bf1c1f42afb3..7225b192ba5e 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java @@ -66,19 +66,13 @@ public class XMLContentImporter extends TestCase { * New spreadsheet document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java index 2b8946448d80..5bf74b1cb5c7 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,19 +69,13 @@ public class XMLExporter extends TestCase { * New text document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java index 351261db730d..b550ffea6479 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java @@ -66,19 +66,13 @@ public class XMLImporter extends TestCase { * New spreadsheet document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java index 1b8f209fcda1..8a731cfcdfa7 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,19 +67,13 @@ public class XMLMetaExporter extends TestCase { * New draw document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java index 7b9be67e8d9f..8bcf5b3551d5 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,19 +64,13 @@ public class XMLMetaImporter extends TestCase { * New draw document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java index 60dfe06f8aca..d4368af7454a 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,19 +68,13 @@ public class XMLSettingsExporter extends TestCase { * New draw document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java index b9bcc4823186..ec6d5625d794 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,19 +65,13 @@ public class XMLSettingsImporter extends TestCase { * New draw document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java index a69dc93f7fff..349120cabb5a 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -71,19 +70,13 @@ public class XMLStylesExporter extends TestCase { * New draw document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java index bf5f8a690e03..63dae1c1b12b 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Draw; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,19 +65,13 @@ public class XMLStylesImporter extends TestCase { * New draw document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating a drawdocument" ); - xDrawDoc = SOF.createDrawDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating a drawdocument" ); + xDrawDoc = SOF.createDrawDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java index 8f82607eac99..eae3f905ec16 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,19 +68,13 @@ public class XMLContentExporter extends TestCase { * New text document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java index 294f26dd4ef6..23ed91b475dd 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,19 +65,13 @@ public class XMLContentImporter extends TestCase { * New chart document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java index 4f5c4c3536df..03080f9d3ac0 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -70,19 +69,13 @@ public class XMLExporter extends TestCase { * New impress document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java index 1db475354957..1331d9130be0 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,19 +65,13 @@ public class XMLImporter extends TestCase { * New impress document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java index 6abece931bdb..a63767f6a99a 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -68,19 +67,13 @@ public class XMLMetaExporter extends TestCase { * New impress document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java index 2492871c8255..c50782e7ed4f 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -65,19 +64,13 @@ public class XMLMetaImporter extends TestCase { * New impress document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java index 3340f1056605..60177f670b53 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -69,17 +68,11 @@ public class XMLSettingsExporter extends TestCase { * New text document created. */ @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 an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java index eb728044a51f..32860a675d4e 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java @@ -67,19 +67,12 @@ public class XMLSettingsImporter extends TestCase { * New impress document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java index 4e5effcbf587..588909433618 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -71,19 +70,12 @@ public class XMLStylesExporter extends TestCase { * New spreadsheet document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java index c78084c6a373..4b0823b44674 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java @@ -20,7 +20,6 @@ package mod._xmloff.Impress; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; @@ -66,19 +65,11 @@ public class XMLStylesImporter extends TestCase { * New spreadsheet document created. */ @Override - protected void initialize( TestParameters tParam, PrintWriter log ) { - + protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); - - try { - log.println( "creating an impress document" ); - xImpressDoc = SOF.createImpressDoc(null); - } catch ( Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); - } + log.println( "creating an impress document" ); + xImpressDoc = SOF.createImpressDoc(null); } /** diff --git a/sc/qa/complex/cellRanges/CheckXCellRangesQuery.java b/sc/qa/complex/cellRanges/CheckXCellRangesQuery.java index 9feb683be1ea..288b4f502239 100644..100755 --- a/sc/qa/complex/cellRanges/CheckXCellRangesQuery.java +++ b/sc/qa/complex/cellRanges/CheckXCellRangesQuery.java @@ -54,66 +54,48 @@ public class CheckXCellRangesQuery { String sSheetName = ""; /** - * Creates Spreadsheet document and the test object, - * before the actual test starts. - */ - @Before public void before() { + * Creates Spreadsheet document and the test object, before the actual test + * starts. + */ + @Before + public void before() throws Exception { // create a calc document - final XMultiServiceFactory xMsf = UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()); + final XMultiServiceFactory xMsf = UnoRuntime.queryInterface( + XMultiServiceFactory.class, connection.getComponentContext() + .getServiceManager()); SOfficeFactory SOF = SOfficeFactory.getFactory(xMsf); - try { - System.out.println( "creating a Spreadsheet document" ); - m_xSheetDoc = SOF.createCalcDoc(null); - } catch ( com.sun.star.uno.Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( ); - fail( "Couldn?t create document"); - } + System.out.println("creating a Spreadsheet document"); + m_xSheetDoc = SOF.createCalcDoc(null); XInterface oObj = null; - try { - System.out.println("Getting spreadsheet") ; - XSpreadsheets oSheets = m_xSheetDoc.getSheets() ; - XIndexAccess oIndexSheets = - UnoRuntime.queryInterface(XIndexAccess.class, oSheets); - m_xSpreadSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class),oIndexSheets.getByIndex(0)); - - // get the first sheet name - XNamed xNamed = (XNamed) AnyConverter.toObject(new Type(XNamed.class),m_xSpreadSheet); - sSheetName = xNamed.getName(); - - // get the cell - System.out.println("Getting a cell from sheet") ; - oObj = m_xSpreadSheet.getCellByPosition(2, 3); - m_xCell = UnoRuntime.queryInterface(XCellRangesQuery.class, oObj); - - } catch (com.sun.star.lang.WrappedTargetException e) { - e.printStackTrace(); - fail("Error getting cell object from spreadsheet document"); - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(); - fail("Error getting cell object from spreadsheet document"); - } catch (com.sun.star.lang.IllegalArgumentException e) { - e.printStackTrace(); - fail("Error getting cell object from spreadsheet document"); - } + System.out.println("Getting spreadsheet"); + XSpreadsheets oSheets = m_xSheetDoc.getSheets(); + XIndexAccess oIndexSheets = UnoRuntime.queryInterface( + XIndexAccess.class, oSheets); + m_xSpreadSheet = (XSpreadsheet) AnyConverter.toObject(new Type( + XSpreadsheet.class), oIndexSheets.getByIndex(0)); + + // get the first sheet name + XNamed xNamed = (XNamed) AnyConverter.toObject(new Type(XNamed.class), + m_xSpreadSheet); + sSheetName = xNamed.getName(); + + // get the cell + System.out.println("Getting a cell from sheet"); + oObj = m_xSpreadSheet.getCellByPosition(2, 3); + m_xCell = UnoRuntime.queryInterface(XCellRangesQuery.class, oObj); // set one value for comparison. - try { - m_xSpreadSheet.getCellByPosition(1, 1).setValue(15); - m_xSpreadSheet.getCellByPosition(1, 3).setValue(5); - m_xSpreadSheet.getCellByPosition(2, 1).setFormula("=B2+B4"); - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(); - fail("Could not fill cell (1, 1) with a value."); - } + m_xSpreadSheet.getCellByPosition(1, 1).setValue(15); + m_xSpreadSheet.getCellByPosition(1, 3).setValue(5); + m_xSpreadSheet.getCellByPosition(2, 1).setFormula("=B2+B4"); } - /* - * this method closes a calc document and resets the corresponding class variable xSheetDoc + /** + * this method closes a calc document and resets the corresponding class + * variable xSheetDoc */ protected boolean closeSpreadsheetDocument() { boolean worked = true; @@ -121,8 +103,8 @@ public class CheckXCellRangesQuery { System.out.println(" disposing xSheetDoc "); try { - XCloseable oCloser = UnoRuntime.queryInterface( - XCloseable.class, m_xSheetDoc); + XCloseable oCloser = UnoRuntime.queryInterface(XCloseable.class, + m_xSheetDoc); oCloser.close(true); } catch (com.sun.star.util.CloseVetoException e) { worked = false; @@ -140,10 +122,10 @@ public class CheckXCellRangesQuery { return worked; } - @After public void after() - { - closeSpreadsheetDocument(); - } + @After + public void after() { + closeSpreadsheetDocument(); + } /** * Perform some tests on an empty cell: @@ -153,24 +135,32 @@ public class CheckXCellRangesQuery { * <li>query for empty cells</li> * <ol> */ - @Test public void checkEmptyCell() { + @Test + public void checkEmptyCell() { System.out.println("Checking an empty cell..."); // compare an empty cell with a cell with a value - assertTrue("\tQuery column differences did not return the correct value.", _queryColumnDifferences(sSheetName+".C4")); + assertTrue( + "\tQuery column differences did not return the correct value.", + _queryColumnDifferences(sSheetName + ".C4")); // compare an empty cell with a cell with a value - assertTrue("\tQuery column differences did not return the correct value.", _queryRowDifferences(sSheetName+".C4")); + assertTrue( + "\tQuery column differences did not return the correct value.", + _queryRowDifferences(sSheetName + ".C4")); System.out.println("...done"); } /** * Perform some tests on a filled cell: * <ol> - * <li>compare an cell with value 5 with a cell with value 15 in the same column</li> - * <li>compare an cell with value 5 with a cell with value 15 in the same row</li> + * <li>compare an cell with value 5 with a cell with value 15 in the same + * column</li> + * <li>compare an cell with value 5 with a cell with value 15 in the same + * row</li> * <li>query for an empty cell.</li> * <ol> */ - @Test public void checkFilledCell() { + @Test + public void checkFilledCell() { System.out.println("Checking a filled cell..."); // fill the cell with a value @@ -182,24 +172,30 @@ public class CheckXCellRangesQuery { } // compare an cell with value 5 with a cell with value 15 - assertTrue("\tQuery column differences did not return the correct value.", _queryColumnDifferences(sSheetName + ".C4")); + assertTrue( + "\tQuery column differences did not return the correct value.", + _queryColumnDifferences(sSheetName + ".C4")); // compare an cell with value 5 with a cell with value 15 - assertTrue("\tQuery column differences did not return the correct value.", _queryRowDifferences(sSheetName+".C4")); + assertTrue( + "\tQuery column differences did not return the correct value.", + _queryRowDifferences(sSheetName + ".C4")); // try to get nothing - assertTrue("\tQuery empty cells did not return the correct value.", _queryEmptyCells("")); + assertTrue("\tQuery empty cells did not return the correct value.", + _queryEmptyCells("")); System.out.println("...done"); } - /** - * Query column differences between my cell(2,3) and (1,1). - * @param expected The expected outcome value. - * @return True, if the result equals the expected result. + * Query column differences between my cell(2,3) and (1,1). + * + * @param expected + * The expected outcome value. + * @return True, if the result equals the expected result. */ public boolean _queryColumnDifferences(String expected) { System.out.println("\tQuery column differences"); - XSheetCellRanges ranges = m_xCell.queryColumnDifferences( - new CellAddress((short) 0, 1, 1)); + XSheetCellRanges ranges = m_xCell + .queryColumnDifferences(new CellAddress((short) 0, 1, 1)); String getting = ranges.getRangeAddressesAsString(); if (!getting.equals(expected)) { @@ -212,8 +208,10 @@ public class CheckXCellRangesQuery { /** * Query for an empty cell. - * @param expected The expected outcome value. - * @return True, if the result equals the expected result. + * + * @param expected + * The expected outcome value. + * @return True, if the result equals the expected result. */ public boolean _queryEmptyCells(String expected) { System.out.println("\tQuery empty cells"); @@ -229,14 +227,16 @@ public class CheckXCellRangesQuery { } /** - * Query row differences between my cell(2,3) and (1,1). - * @param expected The expected outcome value. - * @return True, if the result equals the expected result. + * Query row differences between my cell(2,3) and (1,1). + * + * @param expected + * The expected outcome value. + * @return True, if the result equals the expected result. */ public boolean _queryRowDifferences(String expected) { System.out.println("\tQuery row differences"); - XSheetCellRanges ranges = m_xCell.queryRowDifferences( - new CellAddress((short) 0, 1, 1)); + XSheetCellRanges ranges = m_xCell.queryRowDifferences(new CellAddress( + (short) 0, 1, 1)); String getting = ranges.getRangeAddressesAsString(); if (!getting.equals(expected)) { @@ -248,14 +248,14 @@ public class CheckXCellRangesQuery { return true; } - - @BeforeClass public static void setUpConnection() throws Exception { + @BeforeClass + public static void setUpConnection() throws Exception { connection.setUp(); } - @AfterClass public static void tearDownConnection() - throws InterruptedException, com.sun.star.uno.Exception - { + @AfterClass + public static void tearDownConnection() throws InterruptedException, + com.sun.star.uno.Exception { connection.tearDown(); } diff --git a/sc/qa/complex/dataPilot/CheckDataPilot.java b/sc/qa/complex/dataPilot/CheckDataPilot.java index ea3e4e6cc857..7554d1661a01 100644 --- a/sc/qa/complex/dataPilot/CheckDataPilot.java +++ b/sc/qa/complex/dataPilot/CheckDataPilot.java @@ -36,7 +36,6 @@ import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; import com.sun.star.util.XCloseable; -import lib.StatusException; import lib.TestParameters; import util.SOfficeFactory; @@ -154,7 +153,7 @@ public class CheckDataPilot { /** * create an environment for the test */ - @Before public void before() { + @Before public void before() throws Exception { final XMultiServiceFactory xMsf = UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()); SOfficeFactory SOF = SOfficeFactory.getFactory(xMsf); @@ -176,14 +175,8 @@ public class CheckDataPilot { sCellAdress.Column = 7; sCellAdress.Row = 8; - try { - System.out.println( "Creating a Spreadsheet document" ); - xSheetDoc = SOF.createCalcDoc(null); - } catch (com.sun.star.uno.Exception e) { - // Some exception occurs.FAILED - e.printStackTrace(); - throw new StatusException( "Couldn't create document", e ); - } + System.out.println( "Creating a Spreadsheet document" ); + xSheetDoc = SOF.createCalcDoc(null); System.out.println("Getting a sheet"); XSpreadsheets xSpreadsheets = xSheetDoc.getSheets(); @@ -195,42 +188,26 @@ public class CheckDataPilot { // Per default there's now just one sheet, make sure we have at least two, then xSpreadsheets.insertNewByName("Some Sheet", (short)0); - try { - oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class),oIndexAccess.getByIndex(0)); - oSheet2 = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class),oIndexAccess.getByIndex(1)); - } catch (com.sun.star.lang.WrappedTargetException e) { - e.printStackTrace(); - throw new StatusException( "Couldn't get a spreadsheet", e); - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(); - throw new StatusException( "Couldn't get a spreadsheet", e); - } catch (com.sun.star.lang.IllegalArgumentException e) { - e.printStackTrace(); - throw new StatusException( "Couldn't get a spreadsheet", e); + oSheet = (XSpreadsheet) AnyConverter.toObject( + new Type(XSpreadsheet.class),oIndexAccess.getByIndex(0)); + oSheet2 = (XSpreadsheet) AnyConverter.toObject( + new Type(XSpreadsheet.class),oIndexAccess.getByIndex(1)); + + System.out.println("Filling a table"); + for (int i = 1; i < mMaxFieldIndex; i++) { + oSheet.getCellByPosition(i, 0).setFormula("Col" + i); + oSheet.getCellByPosition(0, i).setFormula("Row" + i); + oSheet2.getCellByPosition(i, 0).setFormula("Col" + i); + oSheet2.getCellByPosition(0, i).setFormula("Row" + i); } - try { - System.out.println("Filling a table"); - for (int i = 1; i < mMaxFieldIndex; i++) { - oSheet.getCellByPosition(i, 0).setFormula("Col" + i); - oSheet.getCellByPosition(0, i).setFormula("Row" + i); - oSheet2.getCellByPosition(i, 0).setFormula("Col" + i); - oSheet2.getCellByPosition(0, i).setFormula("Row" + i); - } - - for (int i = 1; i < mMaxFieldIndex; i++) + for (int i = 1; i < mMaxFieldIndex; i++) + { + for (int j = 1; j < mMaxFieldIndex; j++) { - for (int j = 1; j < mMaxFieldIndex; j++) - { - oSheet.getCellByPosition(i, j).setValue(i * (j + 1)); - oSheet2.getCellByPosition(i, j).setValue(i * (j + 2)); - } + oSheet.getCellByPosition(i, j).setValue(i * (j + 1)); + oSheet2.getCellByPosition(i, j).setValue(i * (j + 2)); } - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(); - throw new StatusException("Couldn't fill some cells", e); } // change a value of a cell and check the change in the data pilot @@ -238,18 +215,13 @@ public class CheckDataPilot { Object oChangeCell = null; Object oCheckCell = null; Integer aChangeValue = null; - try { - // cell of data - oChangeCell = oSheet.getCellByPosition(1, 5); - int x = sCellAdress.Column; - int y = sCellAdress.Row + 3; - // cell of the data pilot output - oCheckCell = oSheet.getCellByPosition(x, y); - aChangeValue = Integer.valueOf(27); - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(); - throw new StatusException( "Couldn't get cells for changing.", e); - } + // cell of data + oChangeCell = oSheet.getCellByPosition(1, 5); + int x = sCellAdress.Column; + int y = sCellAdress.Row + 3; + // cell of the data pilot output + oCheckCell = oSheet.getCellByPosition(x, y); + aChangeValue = Integer.valueOf(27); // create the test objects @@ -261,70 +233,26 @@ public class CheckDataPilot { DPDsc.setSourceRange(sCellRangeAdress); XPropertySet fieldPropSet = null; - try { - Object oDataPilotField = DPDsc.getDataPilotFields().getByIndex(0); - fieldPropSet = - UnoRuntime.queryInterface(XPropertySet.class, oDataPilotField); - } catch (com.sun.star.lang.WrappedTargetException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } catch(com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } + Object oDataPilotField = DPDsc.getDataPilotFields().getByIndex(0); + fieldPropSet = + UnoRuntime.queryInterface(XPropertySet.class, oDataPilotField); - try { - fieldPropSet.setPropertyValue("Function", - com.sun.star.sheet.GeneralFunction.SUM); - fieldPropSet.setPropertyValue("Orientation", - com.sun.star.sheet.DataPilotFieldOrientation.DATA); - } catch(com.sun.star.lang.WrappedTargetException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } catch(com.sun.star.lang.IllegalArgumentException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } catch(com.sun.star.beans.PropertyVetoException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } catch(com.sun.star.beans.UnknownPropertyException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } + fieldPropSet.setPropertyValue("Function", + com.sun.star.sheet.GeneralFunction.SUM); + fieldPropSet.setPropertyValue("Orientation", + com.sun.star.sheet.DataPilotFieldOrientation.DATA); System.out.println("Insert the DataPilotTable"); if (DPT.hasByName("DataPilotTable")) { DPT.removeByName("DataPilotTable"); } DPT.insertNewByName("DataPilotTable", sCellAdress, DPDsc); - try { - mDataPilotTableObject = (XInterface) AnyConverter.toObject( - new Type(XInterface.class),DPT.getByName(DPT.getElementNames()[0])); - } catch (com.sun.star.lang.WrappedTargetException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } catch (com.sun.star.container.NoSuchElementException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } catch (com.sun.star.lang.IllegalArgumentException e) { - e.printStackTrace(); - throw new StatusException("Couldn't create a test environment", e); - } + mDataPilotTableObject = (XInterface) AnyConverter.toObject( + new Type(XInterface.class),DPT.getByName(DPT.getElementNames()[0])); XIndexAccess IA = DPDsc.getDataPilotFields(); - try { - mDataPilotFieldObject = (XInterface)AnyConverter.toObject( - new Type(XInterface.class),IA.getByIndex(0)); - } catch (com.sun.star.lang.WrappedTargetException e) { - e.printStackTrace(); - throw new StatusException("Couldn't get data pilot field", e); - } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - e.printStackTrace(); - throw new StatusException("Couldn't get data pilot field", e); - } catch (com.sun.star.lang.IllegalArgumentException e) { - e.printStackTrace(); - throw new StatusException("Couldn't get data pilot field", e); - } + mDataPilotFieldObject = (XInterface)AnyConverter.toObject( + new Type(XInterface.class),IA.getByIndex(0)); // Other parameters required for interface tests param.put("OUTPUTRANGE", sCellAdress); diff --git a/unotest/source/java/org/openoffice/test/UnoApiTest.java b/unotest/source/java/org/openoffice/test/UnoApiTest.java index b99f4aaf99af..bf8948ceb4f6 100644 --- a/unotest/source/java/org/openoffice/test/UnoApiTest.java +++ b/unotest/source/java/org/openoffice/test/UnoApiTest.java @@ -33,7 +33,7 @@ public final class UnoApiTest { connection.tearDown(); } - @Test public void test() { + @Test public void test() throws Exception { assertTrue( Runner.run( "-sce", Argument.get("sce"), "-xcl", Argument.get("xcl"), "-tdoc", |