test/ft_9_cursor.rb in openwferu-0.9.4 vs test/ft_9_cursor.rb in openwferu-0.9.5
- old
+ new
@@ -8,21 +8,22 @@
#
require 'flowtestbase'
-class FlowTest9 < FlowTestBase
+class FlowTest9 < Test::Unit::TestCase
+ include FlowTestBase
#def setup
#end
#def teardown
#end
def test_cursor_0
dotest(\
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<cursor>
<print>a</print>
<print>b</print>
</cursor>
</process-definition>''',
@@ -30,11 +31,11 @@
b""")
end
def test_cursor_1
dotest(\
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<cursor>
<print>a</print>
<print>b</print>
<cancel />
<print>c</print>
@@ -44,11 +45,11 @@
b""")
end
def test_cursor_2
dotest(\
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<cursor>
<print>a</print>
<print>b</print>
<skip step="2" />
<print>c</print>
@@ -61,11 +62,11 @@
def test_cursor_2b
#
# ZigZag test
#
dotest(\
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<cursor>
<print>a</print>
<skip step="3" />
<print>b</print>
<skip step="2" />
@@ -78,11 +79,11 @@
c""")
end
def test_cursor_3
dotest(\
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<cursor>
<print>a</print>
<skip step="2" />
<print>b</print>
<print>c</print>
@@ -92,10 +93,10 @@
c""")
end
def test_cursor_4
dotest(\
-'<process-definition name="'+test_name+'''" revision="0">
+'<process-definition name="'+name_of_test+'''" revision="0">
<sequence>
<cursor>
<print>a</print>
<set field="__cursor_command__" value="skip 2" />
<print>b</print>