Sha256: a82d75cfa421cf7ce8fe7174709e52f1052dadef39d913512bd98eeaf7cfa68c

Contents?: true

Size: 929 Bytes

Versions: 1

Compression:

Stored size: 929 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#
# Tue Apr  8 12:59:05 JST 2008
#

require 'flowtestbase'
require 'openwfe/def'


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

    #def setup
    #end

    #def teardown
    #end

    #
    # Test 0
    #

    class Test0 < OpenWFE::ProcessDefinition
        concurrence do
            _when :test => "false == true", :timeout => "1s500" do
                _print "la vaca vuela"
            end
            _print "ok"
        end
    end

    #
    # Testing if the conditional _when got correctly unscheduled.
    #
    def test_0

        #log_level_to_debug

        fei = launch Test0

        sleep 0.350

        #puts @engine.get_expression_storage
        assert_equal 6, @engine.get_expression_storage.size

        @engine.cancel_process fei

        sleep 0.350

        assert_equal 1, @engine.get_expression_storage.size
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.18 test/ft_23d_cww.rb