Integration testing Java applications using a Gateway Intercept plug-in
You can use integration test tools to intercept ECI synchronous, EPI, and ESI calls from Java™ Standard Edition and Java Enterprise Edition applications.
Overview
Note: The Gateway intercept plug-in
does not support ECI asynchronous requests.
This feature allows such applications to be tested without requiring a running CICS® server, using tools such as IBM® Rational® Integration Tester.
You can use a plug-in to test your application by writing a Java program which implements the GatewayIntercept interface, and enabling this plug-in for your application
When enabled, a Gateway intercept
plug-in is notified before a connection to a Gateway daemon is opened
or closed, and before a request is sent to the Gateway daemon.
- Before a connection is opened, the plug-in can change the properties of the connection object, and can prevent the connection from opening.
- Before a request is sent, the plug-in can change the properties of the request object, and return the request to the application without being sent.
- Before a connection is closed, the plug-in can prevent the connection from closing.
This feature allows various scenarios to be simulated for application testing.