Sha256: ef82a8e6434556409efbb844ffd269ae58847ab2b7d216bd52ebad29bd772794

Contents?: true

Size: 850 Bytes

Versions: 4

Compression:

Stored size: 850 Bytes

Contents

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

require File.expand_path('../base', __FILE__)

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 = @dashboard.register_participant :alpha, Ruote::NullParticipant

    #noisy

    wfid = @dashboard.launch(pdef)

    wait_for(4)

    ps = @dashboard.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

    @dashboard.register_participant :alpha, Ruote::NoOpParticipant

    #noisy

    assert_trace "done.", pdef
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruote-2.3.0.3 test/functional/ft_28_null_noop_participants.rb
ruote-2.3.0.2 test/functional/ft_28_null_noop_participants.rb
ruote-2.3.0.1 test/functional/ft_28_null_noop_participants.rb
ruote-2.3.0 test/functional/ft_28_null_noop_participants.rb