com.retek.component.rcomrib.test
Class RcomRibInjectorTestUtil

java.lang.Object
  extended bycom.retek.component.rcomrib.test.RcomRibInjectorTestUtil

public class RcomRibInjectorTestUtil
extends java.lang.Object

Utility class for wrapping common operations related to Rib injection.


Constructor Summary
RcomRibInjectorTestUtil()
           
 
Method Summary
static RcomRibAbstractInjector getInjector(java.lang.String family, java.lang.String type)
          Return Injector instance given a family and type.
static void inject(RibFamilyType familyType, com.retek.rib.binding.payload.Payload payload)
          Simulate Rib injection for unit testing.
static void injectRemote(java.lang.String family, java.lang.String type, com.retek.rib.binding.payload.Payload payload)
          Simulate remote Rib injection for system testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RcomRibInjectorTestUtil

public RcomRibInjectorTestUtil()
Method Detail

getInjector

public static RcomRibAbstractInjector getInjector(java.lang.String family,
                                                  java.lang.String type)
                                           throws SystemException
Return Injector instance given a family and type.

Parameters:
family - family name
type - message type
Returns:
RcomRibAbstractInjector
Throws:
SystemException

inject

public static void inject(RibFamilyType familyType,
                          com.retek.rib.binding.payload.Payload payload)
                   throws java.lang.Exception
Simulate Rib injection for unit testing. This operation should only be used for Junit testing of injector logic, not in any production code.

Parameters:
familyType - family/type identifier
payload - payload to injector
Throws:
java.lang.Exception

injectRemote

public static void injectRemote(java.lang.String family,
                                java.lang.String type,
                                com.retek.rib.binding.payload.Payload payload)
                         throws java.lang.Exception
Simulate remote Rib injection for system testing. This operation should be used in any RCOM test wizard client applications to perform a remote injection simulation.

Parameters:
family - family name
type - message type
payload - payload to injector
Throws:
java.lang.Exception


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28