Sha256: 572789a2b1d90cfa174103dd11317514c5f6ad1e50149ca147bc6a4b489c714b
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Oct 9 22:19:44 JST 2006 # require 'openwfe/def' require 'flowtestbase' require 'openwfe/expool/journal' class FlowTest32b < Test::Unit::TestCase include FlowTestBase #def teardown #end #def setup #end # # TEST 0 class TestDefinition0 < ProcessDefinition sequence do participant :alpha participant :bravo end end #def xxxx_journal_0 def test_journal_0 #@engine.application_context[:keep_journals] = true @engine.init_service "journal", Journal @engine.register_participant(:alpha) do |wi| @tracer << "alpha\n" sleep(90) end @engine.register_participant(:bravo) do |wi| @tracer << "bravo\n" end journal_service = @engine.application_context["journal"] fei = dotest(TestDefinition0, "alpha\nbravo") return fn = journal_service.donedir + "/" + fei.wfid + ".journal" #journal_service.analyze fn #sleep(10) assert_equal @engine.get_expression_storage.size, 1 journal_service.replay fn, 18 assert_equal @engine.get_expression_storage.size, 6 journal_service.replay fn, 18, true assert_equal @engine.get_expression_storage.size, 1 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.10 | test/ft_32b_journal.rb |
openwferu-0.9.10.653 | test/ft_32b_journal.rb |
openwferu-0.9.8 | test/ft_32b_journal.rb |
openwferu-0.9.9 | test/ft_32b_journal.rb |