Sha256: a2e2a745b6e722aea333db62c00c6a048fac4055926124352d8348366363f994
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Tue Jan 2 13:14:37 JST 2007 # require 'rubygems' require 'openwfe/def' require 'openwfe/participants/participants' require 'flowtestbase' class FlowTest15b < Test::Unit::TestCase include FlowTestBase #def setup #end #def teardown #end # # Test 0 # class Test0 < OpenWFE::ProcessDefinition sequence do set :field => "participant_list", :value => "a, b, c" iterator :on_value => "${f:participant_list}", :to_variable => "p" do participant "${p}" end _print "done." end end def test_0 @engine.register_participant "." do |workitem| @tracer << workitem.participant_name end dotest Test0, "abcdone." end # # Test 1 # def test_1 @engine.register_participant ".", OpenWFE::NullParticipant fei = launch Test0 sleep 0.350 assert_equal 8, @engine.get_expression_storage.size assert_equal "", @tracer.to_s @engine.cancel_process fei sleep 0.350 #puts @engine.get_expression_storage assert_equal 1, @engine.get_expression_storage.size assert_equal "", @tracer.to_s end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruote-0.9.18 | test/ft_15b_iterator.rb |