Sha256: f7ad1d1206cf6860f852cf662dbca236ab0e4d61928624efcb6c469dd4b5770f
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Sun Mar 9 20:43:02 JST 2008 # require 'flowtestbase' require 'openwfe/def' require 'openwfe/participants/storeparticipants' require 'openwfe/storage/yamlcustom' class FlowTest84b < Test::Unit::TestCase include FlowTestBase #def teardown #end #def setup #end # # TEST 0 class Test0 < OpenWFE::ProcessDefinition sub0 define "sub0" do toto end end def test_0 #log_level_to_debug @engine.register_participant :toto, OpenWFE::NullParticipant fei = @engine.launch Test0 sleep 0.350 ps = @engine.process_stack fei.wfid, true #p ps.collect { |fexp| fexp.fei.to_s } assert_equal 7, ps.size #assert_equal( # ["process-definition", {"name"=>"Test", "revision"=>"0"}, [["sub0", {"ref"=>"sub0"}, []], ["define", {}, ["sub0", ["toto", {"ref"=>"toto"}, []]]]]], # ps.representation) #assert_equal( # ["process-definition", {"name"=>"Test", "revision"=>"0"}, [["sub0", {"ref"=>"sub0"}, []], ["define", {}, ["sub0", ["toto", {"ref"=>"toto"}, []]]]]], # @engine.process_representation(fei.wfid)) assert_equal 9, ps.representation.flatten.size assert_equal 9, @engine.process_representation(fei.wfid).flatten.size # kinky assertions #p @engine.process_status(fei.wfid).expressions.collect { |e| e.fei.to_s } assert_equal 1, @engine.process_status(fei.wfid).branches purge_engine end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruote-0.9.19 | test/ft_84b_subrepr.rb |