test/ft_12_blockparticipant.rb in openwferu-0.9.3 vs test/ft_12_blockparticipant.rb in openwferu-0.9.4

- old
+ new

@@ -17,10 +17,11 @@ #end #def teardown #end + # # Test 0 # class BpDef0 < OpenWFE::ProcessDefinition @@ -32,14 +33,40 @@ end end end end - def test_block_participant + def test_bp_0 dotest( BpDef0, """the block participant received a workitem done.""") + end + + + # + # Test 1 + # + + class BpDef1 < OpenWFE::ProcessDefinition + def make + process_definition :name => "test1", :revision => "0" do + bp1a + end + end + end + + def test_bp_1 + + @engine.register_participant("bp1a") do |fexp, wi| + @tracer << "bp1a : " + @tracer << fexp.class.name + @tracer << "\n" + end + + dotest( + BpDef1, + """bp1a : OpenWFE::ParticipantExpression""") end end