Sha256: 4c856b52d0dabd58e4e3a7cbf4ea39443ce6c17df5a6c8fc66df759fc41b5539
Contents?: true
Size: 1.37 KB
Versions: 5
Compression:
Stored size: 1.37 KB
Contents
# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Oct 9 22:19:44 JST 2006 # require 'openwfe/def' require 'flowtestbase' class FlowTest25 < Test::Unit::TestCase include FlowTestBase #def teardown #end #def setup #end # # TEST 0 def test_cancel_0 dotest(\ '''<process-definition name="25_cancel" revision="0"> <sequence> <print>before</print> <cancel-process/> <print>after</print> </sequence> </process-definition>''', "before") end # # TEST 1 class TestDefinition1 < ProcessDefinition def make _process_definition :name => "25_cancel", :revision => "1" do _sequence do _print "before" _cancel_process _print "after" end end end end def test_cancel_1 dotest(TestDefinition1, "before") end # # TEST 2 class TestDefinition2 < ProcessDefinition def make _process_definition :name => "25_cancel", :revision => "2" do _sequence do _print "before" _cancel_process :if => "false" _print "after" end end end end def test_cancel_2 dotest(TestDefinition2, "before\nafter") end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
openwferu-0.9.5 | test/ft_25_cancel.rb |
openwferu-0.9.6 | test/ft_25_cancel.rb |
openwferu-0.9.7 | test/ft_25_cancel.rb |
openwferu-0.9.8 | test/ft_25_cancel.rb |
openwferu-0.9.9 | test/ft_25_cancel.rb |