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

helper
Class UnoProvider

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

public class UnoProvider
extends Object
implements AppProvider

Bootstrap UNO from a Java environment. Needed parameters:

    • UNORC - complete path to the unorc file
    • AppExecutionCommand - path to the soffice executable
    • OS - the operating system in case it's Windows, because the unorc is called uno.ini


Constructor Summary
UnoProvider()
           
 
Method Summary
 boolean closeExistingOffice(TestParameters param, boolean closeIfPossible)
          Close existing office: calls disposeManager()
 boolean disposeManager(TestParameters param)
          Dispose the UNO environment: just clears the bootstrapped MultiServiceFactory
 Object getManager(TestParameters param)
          Bootstrap UNO and return the created MultiServiceFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnoProvider

public UnoProvider()
Method Detail

closeExistingOffice

public boolean closeExistingOffice(TestParameters param,
                                   boolean closeIfPossible)
Close existing office: calls disposeManager()
Specified by:
closeExistingOffice in interface AppProvider
Parameters:
param - The test parameters.
closeIfPossible - Not needed, since UNO is bootstrapped by this class in every case.
Returns:
True, if bootstrapping worked.

disposeManager

public boolean disposeManager(TestParameters param)
Dispose the UNO environment: just clears the bootstrapped MultiServiceFactory
Specified by:
disposeManager in interface AppProvider
Parameters:
param - The test parameters.
Returns:
True, if bootstrapping worked.

getManager

public Object getManager(TestParameters param)
Bootstrap UNO and return the created MultiServiceFactory.
Specified by:
getManager in interface AppProvider
Parameters:
param - The test parameters.
Returns:
A created MultiServiceFactory.

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.