Sha256: 7c6716c666da18d2b5dcdcff5012eca199d3a0d669977d16d911789e3a71ce71

Contents?: true

Size: 812 Bytes

Versions: 1

Compression:

Stored size: 812 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Thu Jul 24 17:44:11 JST 2008
#

require 'flowtestbase'

require 'openwfe/def'


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

  #
  # test 0
  #

  class Test0 < OpenWFE::ProcessDefinition
    sequence do
      concurrence do
        reserve :mutex => 'poprocessing' do
          petia
        end
        reserve :mutex => 'poprocessing' do
          alpha
        end
      end
      reserve :mutex => 'poprocessing' do
        alpha
      end
    end
  end

  def test_0

    #log_level_to_debug

    @engine.register_participant "petia" do
      @tracer << "petia\n"
    end
    @engine.register_participant "alpha" do |workitem|
      @tracer << "alpha\n"
    end

    dotest Test0, %w{ petia alpha alpha }.join("\n")
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_38d_tag.rb