Sha256: 1c7979162ee614fecc58840e5f003c9859d4c5bb2739db479472809ee526f02e

Contents?: true

Size: 1.39 KB

Versions: 10

Compression:

Stored size: 1.39 KB

Contents

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

require 'flowtestbase'


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

    #def setup
    #end

    #def teardown
    #end

    def test_sleep_0
    #def xxxx_sleep_0
        dotest(
'''<process-definition name="sleep_0" revision="0">
    <sequence>
        <sleep for="2s" />
        <print>alpha</print>
    </sequence>
</process-definition>''', 
            "alpha", 
            true)
    end

    def test_sleep_1
    #def xxxx_sleep_1
        dotest(
'''<process-definition name="sleep_1" revision="0">
    <concurrence>
        <sequence>
            <sleep for="2s" />
            <print>alpha</print>
        </sequence>
        <print>bravo</print>
    </concurrence>
</process-definition>''', 
            """bravo
alpha""", 
            true)
    end

    def test_sleep_2
    #def xxxx_sleep_2
        dotest(
'''<process-definition name="sleep_2" revision="0">
    <sequence>
        <sleep until="${ruby:Time.new() + 4}" />
        <print>alpha</print>
    </sequence>
</process-definition>''', 
            "alpha", 
            true)
    end

    def test_sleep_3
    #def xxxx_sleep_3
        dotest(
'''<process-definition name="sleep_3" revision="0">
    <sequence>
        <sleep for="900" />
        <print>alpha</print>
    </sequence>
</process-definition>''', "alpha", true)
    end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
openwferu-0.9.12.863 test/ft_5_time.rb
openwferu-0.9.14 test/ft_5_time.rb
openwferu-0.9.15 test/ft_5_time.rb
openwferu-0.9.10 test/ft_5_time.rb
openwferu-0.9.10.653 test/ft_5_time.rb
openwferu-0.9.11 test/ft_5_time.rb
openwferu-0.9.12 test/ft_5_time.rb
openwferu-0.9.13 test/ft_5_time.rb
openwferu-0.9.9 test/ft_5_time.rb
openwferu-0.9.8 test/ft_5_time.rb