|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
basicrunner.BasicHandler
This class is a java-part of BASIC-java interaction "driver"
It is used to call Star-Basic's function from java using
basic's part of "driver" where listeners are implemented.
The instance of the BasicHandler should be added to the MSF that will be
used for loading BASIC's part of "driver".
After opening basic's document it creates an instance of the
HandlerContainer using BasicHandler. HandlerContainer is a UNO
XContainer and XNameContainer.
Only one instance of BasicHandler can be used at the moment.
com.sun.star.lang.XServiceInfo
,
XSingleServiceFactory
Constructor Summary | |
BasicHandler(TestParameters tParam)
Creates an instance of a HandlerContainer. |
Method Summary | |
void |
Connect(String sBasicBridgeURL,
TestParameters tParam,
XMultiServiceFactory xMSF,
LogWriter log)
Establishes a connection between BASIC and Java. |
Object |
createInstance()
Create an instance of HandlerContainer. |
Object |
createInstanceWithArguments(Object[] args)
Create an instance of HandlerContainer. |
void |
dispose()
Dispose the BASIC document. |
String |
getImplementationName()
Get the implementation name. |
String[] |
getSupportedServiceNames()
Return all supported service names. |
boolean |
isUptodate(XMultiServiceFactory xMSF)
Is called by BasicIfcTest to find out if this BasicHandler uses the correct MultiServiceFactory. |
void |
Log(String info)
Is called when BASIC sends a signal to write some log information. |
PropertyValue |
perform(String fName,
Object params)
Perform a test of a method. |
void |
setTestedInterface(BasicIfcTest ifc,
LogWriter log)
Set the tested interface and a log writer. |
boolean |
supportsService(String name)
Returns true, if name is a supported service of this class. |
Constructor Detail |
public BasicHandler(TestParameters tParam)
tParam
- The test parameters.Method Detail |
public void setTestedInterface(BasicIfcTest ifc, LogWriter log)
ifc
- The test of an interfacelog
- A log writer.public void Log(String info)
info
- The string to write.public boolean isUptodate(XMultiServiceFactory xMSF)
xMSF
- The MultiServiceFactoryXMultiServiceFactory
public void Connect(String sBasicBridgeURL, TestParameters tParam, XMultiServiceFactory xMSF, LogWriter log) throws ConnectionSetupException
sBasicBridgeURL
- The URL of the basic bridge document
(BasicBridge.sxw)tParam
- The test parameters.xMSF
- The MultiServiceFactorylog
- The log writer.ConnectionSetupException
- Exception is thrown, if no connection could be made.XMultiServiceFactory
public PropertyValue perform(String fName, Object params) throws BasicException
fName
- The name of the method to test.params
- The test parameters.BasicException
- The method could not be executed.public boolean supportsService(String name)
name
- The service name.public String[] getSupportedServiceNames()
public String getImplementationName()
public Object createInstanceWithArguments(Object[] args)
args
- The arguments.public Object createInstance()
public void dispose()
|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |