Sha256: bb9cbd928816cdb2cf11129f332b2de4762633523806ba9e4b1be964c30f2e82

Contents?: true

Size: 944 Bytes

Versions: 2

Compression:

Stored size: 944 Bytes

Contents

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

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_pnames

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

        dotest(DEF0, "sps\nsps_1")

        dotest(TestPnames1, "sps\nsps_1")
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openwferu-0.9.8 test/ft_37_pnames.rb
openwferu-0.9.9 test/ft_37_pnames.rb