Sha256: 371087b77fb72199916bd171bb30d3ea4239359d45c7abe8d5020d40550cd852

Contents?: true

Size: 1009 Bytes

Versions: 1

Compression:

Stored size: 1009 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon Oct  9 22:19:44 JST 2006
#

require 'rubygems'

require 'openwfe/def'

require 'flowtestbase'


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

  #def teardown
  #end

  #def setup
  #end

  DEF0 = '''
<process-definition name="pnames" revision="0">
  <sequence>
    <participant ref="sps" />
    <participant ref="sps_1" />
  </sequence>
</process-definition>
'''.strip

  class TestPnames1 < OpenWFE::ProcessDefinition
    sequence do
      participant :ref => "sps"
      participant :ref => "sps_1"
    end
  end

  def test_0

    prepare

    dotest DEF0, "sps\nsps_1"
  end

  def test_1

    prepare

    #dotest TestPnames1, "sps\nsps_1", true
    dotest TestPnames1, "sps\nsps_1"
  end

  protected

    def prepare

      @engine.register_participant("sps") do |fexp, wi|
        @tracer << "sps\n"
      end
      @engine.register_participant("sps_1") do |fexp, wi|
        @tracer << "sps_1\n"
      end
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_37_pnames.rb