Sha256: d7a7abffdada1a8110ed2da80e179fee2e5dc4e7b40978d82ec900cc3ce1d4a5
Contents?: true
Size: 1.68 KB
Versions: 2
Compression:
Stored size: 1.68 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Oct 9 22:19:44 JST 2006 # require 'openwfe/def' require 'flowtestbase' class FlowTest36 < Test::Unit::TestCase include FlowTestBase #def teardown #end #def setup #end # # TEST 0 class TestSubProcId0 < ProcessDefinition concurrence do subproc subproc end process_definition :name => :subproc do sequence do #reval "puts fei" check end end end class TestSubProcId1 < ProcessDefinition concurrence do subprocess :ref => "subproc" subprocess :ref => :subproc end process_definition :name => :subproc do sequence do #reval "puts fei" check end end end def test_subprocid_0 feis = {} @engine.register_participant(:check) do |fexp, wi| #puts fexp.fei.to_debug_s feis[fexp.fei] = true end @engine.launch(TestSubProcId0) @engine.launch(TestSubProcId1) sleep 1 assert_equal feis.keys.size, 4 end # # TEST about Iterator class TestIteratorSubId0 < ProcessDefinition iterator :on_value => "a, b", :to_variable => "v" do check end end def test_iterator_subid_0 feis = {} @engine.register_participant(:check) do |fexp, wi| #puts fexp.fei.to_debug_s feis[fexp.fei] = true end @engine.launch(TestIteratorSubId0) #puts @tracer assert_equal feis.keys.size, 2 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.8 | test/ft_36_subprocids.rb |
openwferu-0.9.9 | test/ft_36_subprocids.rb |