Sha256: 1335ed5b458bda244d17fde14530dd7ba4c8c81be1bafc08a391e7381d16a454

Contents?: true

Size: 851 Bytes

Versions: 1

Compression:

Stored size: 851 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#
# Sat Jan  5 22:57:53 JST 2008
#

require 'flowtestbase'


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

  #def setup
  #end

  #def teardown
  #end

  #
  # Test 0
  #

  class Def0 < OpenWFE::ProcessDefinition

    sequence do

      exp :name => "p0"
      exp :name => "sub0"

      exp :name => "sequence" do
        p0
        sub0
      end

      set :var => "a", :value => { "ref" => "p0" }
      exp :name => "participant", :variable_attributes => "a"

      exp :default => "p0"
      exp :name => " ", :default => "p0"
    end

    process_definition :name => "sub0" do
      _print "sub0"
    end
  end

  def test_0

    @engine.register_participant :p0 do
      @tracer << "p0\n"
    end

    dotest Def0, %w{ p0 sub0 p0 sub0 p0 p0 p0 }.join("\n")
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_81_exp.rb