test/flowtestbase.rb in openwferu-0.9.3 vs test/flowtestbase.rb in openwferu-0.9.4

- old
+ new

@@ -17,25 +17,32 @@ require 'rutest_utils' include OpenWFE +persistence = ENV["__persistence__"] -$WORKFLOW_ENGINE_CLASS = Engine \ - if not $WORKFLOW_ENGINE_CLASS +$WORKFLOW_ENGINE_CLASS = Engine +if persistence == "FilePersistedEngine" + require "openwfe/engine/file_persisted_engine" + $WORKFLOW_ENGINE_CLASS = FilePersistedEngine +end + + puts puts "testing with engine of class " + $WORKFLOW_ENGINE_CLASS.to_s +#puts "testing with engine of class " + ENV["workflow_engine_class"] puts class FlowTestBase < Test::Unit::TestCase attr_reader \ :engine, :tracer def setup - @engine = $WORKFLOW_ENGINE_CLASS.new() + @engine = eval("#{$WORKFLOW_ENGINE_CLASS}").new() @tracer = Tracer.new @engine.application_context["__tracer"] = @tracer end