Sha256: 56affec1e0b5ba411147dd9a210a472605a0f251d07bab069ffef1f94674d666

Contents?: true

Size: 950 Bytes

Versions: 10

Compression:

Stored size: 950 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", true)
    end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
openwferu-0.9.10 test/ft_37_pnames.rb
openwferu-0.9.10.653 test/ft_37_pnames.rb
openwferu-0.9.11 test/ft_37_pnames.rb
openwferu-0.9.12 test/ft_37_pnames.rb
openwferu-0.9.12.863 test/ft_37_pnames.rb
openwferu-0.9.13 test/ft_37_pnames.rb
openwferu-0.9.14 test/ft_37_pnames.rb
openwferu-0.9.15 test/ft_37_pnames.rb
openwferu-0.9.16 test/ft_37_pnames.rb
openwferu-0.9.17 test/ft_37_pnames.rb