Sha256: 3a6eabf8335a6eadceb2b205bcaa7b135f9083acb0f29052157f490d0f9fd814

Contents?: true

Size: 955 Bytes

Versions: 8

Compression:

Stored size: 955 Bytes

Contents

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

require 'flowtestbase'
require 'openwfe/def'
require 'openwfe/participants/participants'

include OpenWFE


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

    #def setup
    #end

    #def teardown
    #end

    #
    # Test 0
    #

    class Test0 < ProcessDefinition
        sequence do
            _print "a"
            participant :ref => :null, :timeout => "1s"
            _print "b"
        end
    end

    #def xxxx_0
    def test_0

        @engine.register_participant :null, NullParticipant

        dotest(Test0, "a\nb")
    end


    #
    # Test 1
    #

    class Test1 < ProcessDefinition
        sequence do
            _print "a"
            participant :ref => :noop
            _print "b"
        end
    end

    #def xxxx_1
    def test_1

        @engine.register_participant :noop, NoOperationParticipant

        dotest(Test1, "a\nb")
    end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
openwferu-0.9.11 test/ft_53_null_noop_participant.rb
openwferu-0.9.12 test/ft_53_null_noop_participant.rb
openwferu-0.9.12.863 test/ft_53_null_noop_participant.rb
openwferu-0.9.13 test/ft_53_null_noop_participant.rb
openwferu-0.9.14 test/ft_53_null_noop_participant.rb
openwferu-0.9.15 test/ft_53_null_noop_participant.rb
openwferu-0.9.16 test/ft_53_null_noop_participant.rb
openwferu-0.9.17 test/ft_53_null_noop_participant.rb