Sha256: 0963ba41fea20e596196b56eea38e65f5f0304e0e949594816b0e1e2081d32c7

Contents?: true

Size: 1.6 KB

Versions: 15

Compression:

Stored size: 1.6 KB

Contents

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

require 'flowtestbase'


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

    #def setup
    #end

    #def teardown
    #end

    def test_subprocess_ref_0
        dotest(\
'''<process-definition name="subtest0" revision="0">

    <subprocess ref="sub0" />

    <process-definition name="sub0">
        <print>ok</print>
    </process-definition>

</process-definition>''', 'ok')
    end

    def test_subprocess_ref_1
        dotest(\
'''<process-definition name="subtest0" revision="0">

    <sequence>
        <subprocess ref="sub0" />
        <subprocess ref="sub0" />
    </sequence>

    <process-definition name="sub0">
        <print>ok</print>
    </process-definition>

</process-definition>''', '''ok
ok''')
    end

    def test_subprocess_ref_2
        dotest(\
'''<process-definition name="subtest0" revision="0">

    <sequence>
        <sub0 />
        <print>after</print>
    </sequence>

    <process-definition name="sub0">
        <print>ok</print>
    </process-definition>

</process-definition>''', '''ok
after''')
    end

    def test_subprocess_ref_3
        dotest(\
'''<process-definition name="subtest0" revision="0">

    <sequence>
        <set variable="v" value="out" />
        <sub0 />
        <print>after : ${v}</print>
    </sequence>

    <process-definition name="sub0">
        <sequence>
            <set variable="v" value="in" />
            <print>ok : ${v}</print>
        </sequence>
    </process-definition>

</process-definition>''', '''ok : in
after : out''')
    end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
openwferu-0.9.10 test/ft_14_subprocess.rb
openwferu-0.9.10.653 test/ft_14_subprocess.rb
openwferu-0.9.11 test/ft_14_subprocess.rb
openwferu-0.9.12 test/ft_14_subprocess.rb
openwferu-0.9.12.863 test/ft_14_subprocess.rb
openwferu-0.9.13 test/ft_14_subprocess.rb
openwferu-0.9.14 test/ft_14_subprocess.rb
openwferu-0.9.15 test/ft_14_subprocess.rb
openwferu-0.9.16 test/ft_14_subprocess.rb
openwferu-0.9.17 test/ft_14_subprocess.rb
openwferu-0.9.5 test/ft_14_subprocess.rb
openwferu-0.9.6 test/ft_14_subprocess.rb
openwferu-0.9.7 test/ft_14_subprocess.rb
openwferu-0.9.8 test/ft_14_subprocess.rb
openwferu-0.9.9 test/ft_14_subprocess.rb