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

- old
+ new

@@ -1,6 +1,6 @@ -# +#_ # Testing OpenWFE # # John Mettraux at openwfe.org # # Sun Oct 29 15:41:44 JST 2006 @@ -38,12 +38,13 @@ @tracer = Tracer.new @engine.application_context["__tracer"] = @tracer end - #def teardown - #end + def teardown + @engine.stop + end def default_test () assert true end @@ -64,10 +65,14 @@ @engine.register_participant('block-participant') do |workitem| @tracer << "the block participant received a workitem" @tracer << "\n" end + @engine.register_participant('p-toto') do |workitem| + @tracer << "toto" + end + # @engine.register_participant( # 'eno', # EmailNotificationParticipant.new( # "googlemail.l.google.com", # 25, @@ -111,11 +116,12 @@ '#{expectedTrace}' """ end - exp_storage = \ - engine.application_context[S_EXPRESSION_STORAGE] + #exp_storage = \ + # engine.application_context[S_EXPRESSION_STORAGE] + exp_storage = engine.get_expression_storage if allowRemainingExpressions exp_storage.purge return end