Sha256: 404279e11a97f7c08691d50bd0dc53a3d5fcee71a15204c36065ede6cc84c501

Contents?: true

Size: 940 Bytes

Versions: 1

Compression:

Stored size: 940 Bytes

Contents

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

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


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

    #def setup
    #end

    #def teardown
    #end

    #
    # Test 0
    #

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

    def test_0

        @engine.register_participant :null, OpenWFE::NullParticipant

        dotest Test0, "a\nb"
    end


    #
    # Test 1
    #

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

    def test_1

        @engine.register_participant :noop, OpenWFE::NoOperationParticipant

        dotest Test1, "a\nb"
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.18 test/ft_53_null_noop_participant.rb