test/ft_69_cancelmissing.rb in ruote-0.9.18 vs test/ft_69_cancelmissing.rb in ruote-0.9.19
- old
+ new
@@ -5,47 +5,49 @@
# John Mettraux at openwfe.org
#
# Thu Sep 13 09:50:29 JST 2007
#
+require 'rubygems'
+
require 'openwfe/def'
require 'flowtestbase'
class FlowTest69 < Test::Unit::TestCase
- include FlowTestBase
+ include FlowTestBase
- #def teardown
- #end
+ #def teardown
+ #end
- #def setup
- #end
+ #def setup
+ #end
- #
- # TEST 0
+ #
+ # TEST 0
- class Test0 < ProcessDefinition
- #__bravo
- participant :ref => "__bravo"
- end
+ class Test0 < OpenWFE::ProcessDefinition
+ #__bravo
+ participant :ref => "__bravo"
+ end
- def test_0
+ def test_0
- #log_level_to_debug
+ #log_level_to_debug
- fei = launch Test0
+ fei = launch Test0
- sleep 0.350
+ sleep 0.350
- assert @engine.process_status(fei.wfid).errors.size > 0
+ assert @engine.process_status(fei.wfid).errors.size == 1
- @engine.cancel_process fei
+ @engine.cancel_process fei
- sleep 0.100
+ sleep 0.100
- assert_nil @engine.process_status(fei.wfid)
- assert_equal ({}), @engine.list_process_status
- end
+ assert_nil @engine.process_status(fei.wfid)
+ assert_equal ({}), @engine.list_process_status
+ end
end