Sha256: dec3f81dfb1ddebec32e7735fbf66ea381040b2ece7271cd782ab798844550b0

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Mon Oct 29 12:46:32 JST 2007
#

require 'openwfe/def'

require 'flowtestbase'


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

    #def setup
    #end

    #def teardown
    #end

    #
    # TEST 0

    class Test0 < ProcessDefinition
        #_sleep :for => "10s"
        cron :tab => "* * * * *", :name => "//mario" do
            _print "nada"
        end
    end

    def test_0

        fei = launch Test0

        sleep 0.250

        #puts @engine.list_process_status fei
        #puts
        #puts @engine.get_process_stack fei
        #puts @engine.get_process_stack(fei)[0].class.name

        #puts
        #puts @engine.process_status(fei).expressions[0].instance_variables
        #puts
        #puts @engine.process_status(fei).expressions[0].awakening_time
        #puts
        #puts @engine.process_status(fei).expressions[0].scheduler_job_id

        puts @engine.get_scheduler.inspect

        @engine.cancel_process fei
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.18 test/ft_59b_ps_for_pat.rb