Jetif v1.8.0

jetif.ext.proxy
Class IDLProxy

java.lang.Object
  extended byjetif.ext.proxy.IDLProxy
All Implemented Interfaces:
LwProxy

public class IDLProxy
extends Object
implements LwProxy

This class IDLProxy represents the stub of IDL proxy in client side. To use the IDL proxy, user should enable remote test mode by set the "remote" attribute to "true" in suite spec, and set the "proxyclass" attribute to full class name of this class.
The default CORBA object name used by proxy agent servant is "jetif_IdlProxyAgent". You should specify the CORBA object name by jetif property "jetif.proxy.agent.uri" if you are using a custom CORBA object name instead of default one.

Author:
Vicky Wang

Field Summary
static String DEFAULT_PROXY_ID
          The default CORBA object name of the proxy servant.
 
Constructor Summary
IDLProxy()
           
 
Method Summary
 void close()
          Close the proxy.
 void open(Properties props, String data)
          Open this proxy for testing.
 String runCase(String input)
          Run a test case
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROXY_ID

public static final String DEFAULT_PROXY_ID
The default CORBA object name of the proxy servant.

See Also:
Constant Field Values
Constructor Detail

IDLProxy

public IDLProxy()
Method Detail

open

public void open(Properties props,
                 String data)
          throws FrameworkException
Open this proxy for testing. Called by framework.

Specified by:
open in interface LwProxy
Parameters:
props - the properties of current suite.
data - data should be transfered to test agent.
Throws:
FrameworkException - if any error occurs.

runCase

public String runCase(String input)
               throws FrameworkException
Run a test case

Specified by:
runCase in interface LwProxy
Parameters:
input - input data for this test case.
Returns:
result of the test case.
Throws:
FrameworkException - if any error occurs.

close

public void close()
           throws FrameworkException
Close the proxy.

Specified by:
close in interface LwProxy
Throws:
FrameworkException - if any error occurs.

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.