Sha256: 43f1b61877eecdcb8c6bb4f38406bfc783b0beda9c7028d98772a2bba9d03fea

Contents?: true

Size: 1001 Bytes

Versions: 2

Compression:

Stored size: 1001 Bytes

Contents

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

require 'flowtestbase'


class FlowTest5 < FlowTestBase

    #def setup
    #end

    #def teardown
    #end

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

    def test_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""", 3)
    end

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openwferu-0.9.0 test/ft_5_time.rb
openwferu-0.9.1 test/ft_5_time.rb