Sha256: de6c5cbd4eaf84207622af84ad7a47cc7b8eaeb6a75f4ba484629c3e030e982a

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 Bytes

Contents

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

require 'openwfe/def'
require 'flowtestbase'


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

    #def setup
    #end

    #def teardown
    #end

    #def xxxx_con_0
    def test_con_0
        dotest(
            '''<process-definition name="con" revision="0">
    <concurrence>
        <print>a</print>
        <print>b</print>
    </concurrence>
</process-definition>''', 
            [ '''a
b''', '''b
a''' ],
            true)
    end


    #
    # TEST 1

    class TestCon2c1 < OpenWFE::ProcessDefinition
        sequence do
            concurrence :count => "1", :remaining => "forget" do
                _print "a"
                sequence do
                    _sleep "500"
                    _print "b"
                end
            end
            _print "c"
        end
    end

    def test_con_1
        dotest(TestCon2c1, "a\nc\nb", true)
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openwferu-0.9.9 test/ft_2c_concurrence.rb