Sha256: 2d9473e263a0c26aa2ba8080f4f59c30dcc834fa1d6a371dcad469fd272f0f66

Contents?: true

Size: 834 Bytes

Versions: 1

Compression:

Stored size: 834 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'openwfe/def'
require 'openwfe/participants/participants'


class FlowTest53 < Test::Unit::TestCase
  include FlowTestBase

  #def setup
  #end

  #def teardown
  #end

  #
  # Test 0
  #

  class Test0 < OpenWFE::ProcessDefinition
    sequence do
      _print "a"
      participant :ref => :null, :timeout => "1s"
      _print "b"
    end
  end

  def test_0

    @engine.register_participant :null, OpenWFE::NullParticipant

    dotest Test0, "a\nb"
  end


  #
  # Test 1
  #

  class Test1 < OpenWFE::ProcessDefinition
    sequence do
      _print "a"
      participant :ref => :noop
      _print "b"
    end
  end

  def test_1

    @engine.register_participant :noop, OpenWFE::NoOperationParticipant

    dotest Test1, "a\nb"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_53_null_noop_participant.rb