-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcukes.feature
89 lines (71 loc) · 2.57 KB
/
cukes.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Feature: Cukes
Scenario: in the belly
Given I have 4 "cukes" in my belly
Then I am "happy"
Scenario: Int in the belly
Given I have eaten an int 100
Then I should have one hundred in my belly
Scenario: Long in the belly
Given I have eaten a long 100
Then I should have long one hundred in my belly
Scenario: String in the belly
Given I have eaten "numnumnum"
Then I should have numnumnum in my belly
Scenario: Double in the belly
Given I have eaten 1.5 doubles
Then I should have one and a half doubles in my belly
Scenario: Float in the belly
Given I have eaten 1.5 floats
Then I should have one and a half floats in my belly
Scenario: Short in the belly
Given I have eaten a short 100
Then I should have short one hundred in my belly
Scenario: Byte in the belly
Given I have eaten a byte 2
Then I should have two byte in my belly
Scenario: BigDecimal in the belly
Given I have eaten 1.5 big decimals
Then I should have one and a half big decimals in my belly
Scenario: BigInt in the belly
Given I have eaten 10 big int
Then I should have a ten big int in my belly
Scenario: Char in the belly
Given I have eaten char 'C'
Then I should have character C in my belly
Scenario: Boolean in the belly
Given I have eaten boolean true
Then I should have truth in my belly
Scenario: DataTable in the belly
Given I have the following foods :
| FOOD | CALORIES |
| cheese | 500 |
| burger | 1000 |
| fries | 750 |
Then I am "definitely happy"
And have eaten 2250.0 calories today
Scenario: DataTable with args in the belly
Given I have a table the sum of all rows should be 400 :
| ROW |
| 20 |
| 80 |
| 300 |
Scenario: Argh! a snake - to be custom mapped
Given I see in the distance ... =====>
Then I have a snake of length 6 moving east
And I see in the distance ... <====================
Then I have a snake of length 21 moving west
Scenario: Custom object with string constructor
Given I have a person Bob
Then he should say "Hello, I'm Bob!"
Scenario: Custom objects in the belly
Given I have eaten the following cukes
| Color | Number |
| Green | 1 |
| Red | 3 |
| Blue | 2 |
Then I should have eaten 6 cukes
And they should have been Green, Red, Blue
Scenario: Did you know that we can handle call by name and zero arity
Given I drink gin and vermouth
When I shake my belly
Then I should have lots of martinis