Sha256: a61724a5158d43d6c5b443e4fba5579f18651974411f230bc49716fee9824a3d

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'openwfe/def'

include OpenWFE



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

    #def setup
    #end

    #def teardown
    #end


    #
    # Test 0
    #

    class TestReserve39a0 < ProcessDefinition
        reserve :mutex => :toto do
            _print "ok"
        end
    end

    def test_0
        dotest(TestReserve39a0, "ok", true)
    end


    #
    # Test 1
    #

    class TestReserve39a1 < ProcessDefinition
        sequence do
            reserve :mutex => :toto do
                _print "${r:'${toto}' != ''}"
            end
            _print "${r:'${toto}' == ''}"
            _print "over."
        end
    end

    def test_1
        dotest(TestReserve39a1, "true\ntrue\nover.", true)
    end


    #
    # Test 2
    #

    # moved to ft_39b_reserve.rb

    #
    # Test 3
    #

    class TestReserve39a3 < ProcessDefinition
        reserve :mutex => :toto do
        end
    end

    def test_3
        dotest(TestReserve39a3, "", true)
    end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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