Sha256: 4d51458fa232ac4aacd2caf9a580ebe21e648081ce984510e6e407675a911c81

Contents?: true

Size: 842 Bytes

Versions: 7

Compression:

Stored size: 842 Bytes

Contents

#
# testing ruote
#
# Mon Sep 14 19:11:45 JST 2009
#

require File.join(File.dirname(__FILE__), 'base')

require 'ruote/part/no_op_participant'
require 'ruote/part/null_participant'


class FtNullNoopParticipantsTest < Test::Unit::TestCase
  include FunctionalBase

  def test_null_participant

    pdef = Ruote.process_definition :name => 'def0' do
      alpha
    end

    alpha = @engine.register_participant :alpha, Ruote::NullParticipant

    #noisy

    wfid = @engine.launch(pdef)

    wait_for(4)

    ps = @engine.process(wfid)

    assert_not_nil ps
    assert_equal [], ps.errors
  end

  def test_noop_participant

    pdef = Ruote.process_definition :name => 'def0' do
      alpha
      echo 'done.'
    end

    @engine.register_participant :alpha, Ruote::NoOpParticipant

    #noisy

    assert_trace pdef, "done."
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruote-2.1.7 test/functional/ft_28_null_noop_participants.rb
ruote-2.1.6 test/functional/ft_28_null_noop_participants.rb
ruote-2.1.5 test/functional/ft_28_null_noop_participants.rb
ruote-2.1.4 test/functional/ft_28_null_noop_participants.rb
ruote-2.1.3 test/functional/ft_28_null_noop_participants.rb
ruote-2.1.2 test/functional/ft_28_null_noop_participants.rb
ruote-2.1.1 test/functional/ft_28_null_noop_participants.rb