(incubating) | The Free and Open Productivity Suite
OOoRunner test harness

helper
Class OfficeProvider

java.lang.Object
  |
  +--helper.OfficeProvider
All Implemented Interfaces:
AppProvider

public class OfficeProvider
extends Object
implements AppProvider

This class will connect the office and start it if possible


Field Summary
protected static boolean debug
           
 
Constructor Summary
OfficeProvider()
           
 
Method Summary
protected  boolean closeAllWindows(XDesktop desk)
           
 boolean closeExistingOffice(TestParameters param, boolean closeIfPossible)
          Close an office.
protected static XMultiServiceFactory connect(String connectStr)
          Connect an Office
 boolean disposeManager(TestParameters param)
          Dispose the office.
 Object getManager(TestParameters param)
          Method to get the ServiceManager of an Office
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static boolean debug
Constructor Detail

OfficeProvider

public OfficeProvider()
Method Detail

disposeManager

public boolean disposeManager(TestParameters param)
Dispose the office. This method can only be used, if the office was connected in the first place: getManager() was called first.
Specified by:
disposeManager in interface AppProvider

getManager

public Object getManager(TestParameters param)
Method to get the ServiceManager of an Office
Specified by:
getManager in interface AppProvider

connect

protected static XMultiServiceFactory connect(String connectStr)
                                       throws Exception,
                                              RuntimeException,
                                              NoConnectException,
                                              Exception
Connect an Office

closeExistingOffice

public boolean closeExistingOffice(TestParameters param,
                                   boolean closeIfPossible)
Close an office.
Specified by:
closeExistingOffice in interface AppProvider
Parameters:
param - The test parameters.
closeIfPossible - If true, close even if it was running before the test

closeAllWindows

protected boolean closeAllWindows(XDesktop desk)

OOoRunner test harness

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.