public String createNewInstance( final boolean persisted, final Map parameters, final boolean forceImmediateWrite ) { return runtimeContext.createNewInstance( persisted, parameters, forceImmediateWrite ); }
final Map<String, String> noParams = new HashMap<>( ); Assert.assertNotNull( runtimeCtx.createNewInstance( persisted ) ); Assert.assertNotNull( runtimeCtx.createNewInstance( notPersisted ) ); Assert.assertNotNull( runtimeCtx.createNewInstance( persisted, noParams ) ); Assert.assertNotNull( runtimeCtx.createNewInstance( notPersisted, noParams ) ); Assert.assertNotNull( runtimeCtx.createNewInstance( persisted, noParams, forceImmediateWrite ) ); Assert.assertNotNull( runtimeCtx.createNewInstance( notPersisted, noParams, dontForceImmediateWrite ) );
params.put( "List", list ); runtimeCtx.createNewInstance( persisted, params, forceImmediateWrite );