Sha256: ce11ef4d573a8bea57586b47aa013ce6715de906c6d99cf3cf1ed466ad4e1671

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 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.19 test/ft_23d_cww.rb