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