Sha256: 9a658f3e2957985fbab198c131899e12bf5c547330232fe48acfa9b4614c7230

Contents?: true

Size: 970 Bytes

Versions: 2

Compression:

Stored size: 970 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Tue Jan  2 13:14:37 JST 2007
#

#require 'profile'

require 'flowtestbase'
require 'openwfe/expressions/raw_prog'

include OpenWFE


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

    #def setup
    #end

    #def teardown
    #end

    #
    # Test 0
    #

    N = 10000

    class TestDefinition0 < ProcessDefinition
        sequence do
            N.times do
                count
            end
        end
    end

    #def xxxx_load_0
    def test_load_0

        #@engine.get_scheduler.sstop
            #
            # JRuby is no friend of the Scheduler

        $count = 0

        @engine.register_participant("count") do |workitem|
            $count += 1
            print "."
        end

        fei = @engine.launch(LaunchItem.new(TestDefinition0))
        puts "launched #{fei}"

        @engine.wait_for fei
        #sleep 60

        assert_equal $count, N
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openwferu-0.9.12.863 test/ft_26c_load.rb
openwferu-0.9.13 test/ft_26c_load.rb