public static boolean setResourceInputStreamCalled = false;
public static boolean setActionSequenceResourceCalled = false;
public void testSimplePojoInput() {
startTest();
ISolutionEngine solutionEngine = ServiceTestHelper.getSolutionEngine();
try {
String xactionStr = ServiceTestHelper.getXAction( SOLUTION_PATH, "test/pojo/pojo1a.xaction" );
PojoComponentTest.doneCalled = false;
PojoComponentTest.setSessionCalled = false;
PojoComponentTest.setLoggerCalled = false;
TestPojo1.int1 = 0;
TestPojo1.int2 = null;
SimpleParameterProvider inputs = new SimpleParameterProvider();
inputs.setParameter( "int2", new Integer( 22 ) );
inputs.setParameter( "bool2", new Boolean( true ) );
inputs.setParameter( "long2", new Long( 99 ) );
inputs.setParameter( "bigdecimal", new BigDecimal( "77.7" ) );
inputs.setParameter( "float2", new Float( 44.4 ) );
inputs.setParameter( "double2", new Double( 66.6 ) );
Map providers = new HashMap();
providers.put( IParameterProvider.SCOPE_REQUEST, inputs );
IRuntimeContext runtimeContext =
solutionEngine
.execute(
xactionStr,
"test1a.xaction", "empty action sequence test", false, true, null, false, providers, null, null, new SimpleUrlFactory( "" ), new ArrayList() ); //$NON-NLS-1$ //$NON-NLS-2$
assertNotNull( "RuntimeContext is null", runtimeContext );
IActionParameter param = runtimeContext.getOutputParameter( "output1" );