Sha256: f7b83f684302357cdb3d90911aa531ac683351bcfc890dd01bbd2914d694a1a9

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

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.18 test/ft_37_pnames.rb