# # Testing OpenWFEru # # John Mettraux at openwfe.org # require 'flowtestbase' require 'pending' require 'openwfe/def' #require 'openwfe/participants/participants' include OpenWFE class FlowTest55 < Test::Unit::TestCase include FlowTestBase include PendingJobsMixin #def setup #end #def teardown #end # # Test 0 # class Test0 < ProcessDefinition sequence do concurrence :count => 1 do sequence do participant :ref => "channel_z", :timeout => "1s" _print "cancelled?" end _print "concurrence done" end end end #def xxxx_0 def test_0 @engine.register_participant :channel_z, NullParticipant #class << @engine.get_scheduler # attr_reader :pending_jobs #end # # having a look into the scheduler #require 'pp'; pp @engine.get_scheduler.pending_jobs assert_no_jobs_left dotest(Test0, "concurrence done") #require 'pp'; pp @engine.get_scheduler.pending_jobs assert_no_jobs_left end end