Sha256: 7167ceba23214974df66c7add2fbc82df6e8a13cdc7121771e081b72ee008084
Contents?: true
Size: 1.51 KB
Versions: 3
Compression:
Stored size: 1.51 KB
Contents
# # testing ruote # # Tue Jun 15 09:07:58 JST 2010 # require File.join(File.dirname(__FILE__), 'base') require 'ruote/part/storage_participant' class FtStorageCopyTest < Test::Unit::TestCase include FunctionalBase def test_copy_to_hash_storage @engine.register_participant '.+', Ruote::StorageParticipant #noisy wfid = @engine.launch(Ruote.process_definition do sequence do alpha :timeout => '2d' end end) wait_for(:alpha) sleep 0.100 # making sure msgs have all been processed target = Ruote::HashStorage.new source = @engine.context.storage #count = source.copy_to(target, :verbose => true) count = source.copy_to(target) assert_equal 8, count assert_equal source.ids('expressions'), target.ids('expressions') end def test_copy_from_hash_storage engine = Ruote::Engine.new(Ruote::Worker.new(Ruote::HashStorage.new())) engine.register_participant '.+', Ruote::StorageParticipant #engine.context.logger.noisy = true wfid = engine.launch(Ruote.process_definition do sequence do alpha :timeout => '2d' end end) engine.wait_for(:alpha) sleep 0.100 # making sure msgs have all been processed source = engine.context.storage target = @engine.context.storage #count = source.copy_to(target, :verbose => true) count = source.copy_to(target) assert_equal 8, count assert_equal source.ids('expressions'), target.ids('expressions') assert_not_nil @engine.process(wfid) end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ruote-maestrodev-2.2.1 | test/functional/ft_42_storage_copy.rb |
ruote-2.2.0 | test/functional/ft_42_storage_copy.rb |
ruote-2.1.11 | test/functional/ft_42_storage_copy.rb |