Sha256: 7ade593abef9a2ff9269aa315b183fe9feed938dd460d793d10458a8e230ca71
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # require 'openwfe/def' require 'flowtestbase' class FlowTest64a < Test::Unit::TestCase include FlowTestBase #def teardown #end #def setup #end # # TEST 0 class Test0 < ProcessDefinition sequence do participant :bravo participant :abracadabra end end #def xxxx_0 def test_0 @engine.register_participant "a.*" do |workitem| @tracer << workitem.participant_name @tracer << "\n" end @engine.register_participant :bravo, AliasParticipant.new("alpha") dotest(Test0, "alpha\nabracadabra") end # # TEST 1 class Test1 < ProcessDefinition sequence do set :v => "toto", :val => "elvis" toto end end def test_1 #log_level_to_debug @engine.register_participant "elvis" do @tracer << "sivle" end dotest(Test1, "sivle") end # # TEST 2 class Test2 < ProcessDefinition # # some aliases set :v => "alice", :val => "elvis" set :v => "bob", :val => "elvis" # # the body of the process sequence do alice bob end end def test_2 #log_level_to_debug @engine.register_participant "elvis" do |workitem| @tracer << workitem.fei.expression_id @tracer << "\n" end dotest Test2, "0.2.0\n0.2.1" end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
openwferu-0.9.16 | test/ft_64_alias.rb |
openwferu-0.9.17 | test/ft_64_alias.rb |
ruote-0.9.18 | test/ft_64_alias.rb |