@@ -10,8 +10,8 @@ Feature: Upgrade Candidate
10
10
And the default "grails" version is "2.4.4"
11
11
And the system is bootstrapped
12
12
When I enter "sdk upgrade grails" and answer "n"
13
- Then I see "Upgrade :"
14
- And I see "grails (1.3.9 < 2.4.4)"
13
+ Then I see "Available defaults :"
14
+ And I see "grails (local: 1.3.9; default: 2.4.4)"
15
15
16
16
Scenario : Display upgradable candidate version in use when it is not upgradable
17
17
Given the candidate "grails" version "1.3.9" is already installed and default
@@ -37,8 +37,8 @@ Feature: Upgrade Candidate
37
37
And the default "grails" version is "2.4.4"
38
38
And the system is bootstrapped
39
39
When I enter "sdk upgrade" and answer "n"
40
- Then I see "Upgrade :"
41
- And I see "grails (1.3.9 < 2.4.4)"
40
+ Then I see "Available defaults :"
41
+ And I see "grails (local: 1.3.9; default: 2.4.4)"
42
42
43
43
Scenario : Display upgradable candidate versions when none is specified and multiple are in use
44
44
Given the candidate "grails" version "1.3.9" is already installed and default
@@ -47,9 +47,9 @@ Feature: Upgrade Candidate
47
47
And the default "groovy" version is "2.4.1"
48
48
And the system is bootstrapped
49
49
When I enter "sdk upgrade" and answer "n"
50
- Then I see "Upgrade :"
51
- And I see "grails (1.3.9 < 2.4.4)"
52
- And I see "groovy (2.0.5 < 2.4.1)"
50
+ Then I see "Available defaults :"
51
+ And I see "grails (local: 1.3.9; default: 2.4.4)"
52
+ And I see "groovy (local: 2.0.5; default: 2.4.1)"
53
53
54
54
Scenario : Display upgradable candidate versions when none specified and multiple in use but not upgradable
55
55
Given the candidate "grails" version "1.3.9" is already installed and default
@@ -69,10 +69,10 @@ Feature: Upgrade Candidate
69
69
And the candidate "groovy" version "2.4.1" is available for download
70
70
And the system is bootstrapped
71
71
When I enter "sdk upgrade" and answer "Y"
72
- Then I see "Upgrade :"
73
- And I see "grails (1.3.9 < 2.1.0)"
74
- And I see "groovy (2.0.5 < 2.4.1)"
75
- And I see "Upgrade candidate(s) and set latest version(s) as default ? (Y/n)"
72
+ Then I see "Available defaults :"
73
+ And I see "grails (local: 1.3.9; default: 2.1.0)"
74
+ And I see "groovy (local: 2.0.5; default: 2.4.1)"
75
+ And I see "Upgrade to latest default version(s)? (Y/n)"
76
76
And I do not see "Do you want grails 2.1.0 to be set as default? (Y/n)"
77
77
And I see "Setting grails 2.1.0 as default."
78
78
And I do not see "Do you want groovy 2.4.1 to be set as default? (Y/n)"
@@ -86,9 +86,9 @@ Feature: Upgrade Candidate
86
86
And the candidate "grails" version "2.1.0" is available for download
87
87
And the system is bootstrapped
88
88
When I enter "sdk upgrade" and answer "N"
89
- Then I see "Upgrade :"
90
- And I see "grails (1.3.9 < 2.1.0)"
91
- And I see "Upgrade candidate(s) and set latest version(s) as default ? (Y/n)"
89
+ Then I see "Available defaults :"
90
+ And I see "grails (local: 1.3.9; default: 2.1.0)"
91
+ And I see "Upgrade to latest default version(s)? (Y/n)"
92
92
Then the candidate "grails" version "1.3.9" should be the default
93
93
94
94
Scenario : Update upgradable candidate version and set it as default
@@ -97,9 +97,9 @@ Feature: Upgrade Candidate
97
97
And the candidate "grails" version "2.1.0" is available for download
98
98
And the system is bootstrapped
99
99
When I enter "sdk upgrade grails" and answer "Y"
100
- Then I see "Upgrade :"
101
- And I see "grails (1.3.9 < 2.1.0)"
102
- And I see "Upgrade candidate(s) and set latest version(s) as default ? (Y/n): "
100
+ Then I see "Available defaults :"
101
+ And I see "grails (local: 1.3.9; default: 2.1.0)"
102
+ And I see "Upgrade to latest default version(s)? (Y/n): "
103
103
And I do not see "Do you want grails 2.1.0 to be set as default? (Y/n)"
104
104
And I see "Setting grails 2.1.0 as default."
105
105
Then the candidate "grails" version "2.1.0" should be the default
@@ -111,9 +111,9 @@ Feature: Upgrade Candidate
111
111
And I have configured "sdkman_auto_answer" to "true"
112
112
And the system is bootstrapped
113
113
When I enter "sdk upgrade grails"
114
- Then I see "Upgrade :"
115
- And I see "grails (1.3.9 < 2.1.0)"
116
- And I do not see "Upgrade candidate(s) and set latest version(s) as default ? (Y/n): "
114
+ Then I see "Available defaults :"
115
+ And I see "grails (local: 1.3.9; default: 2.1.0)"
116
+ And I do not see "Upgrade to latest default version(s)? (Y/n): "
117
117
And I do not see "Do you want grails 2.1.0 to be set as default? (Y/n)"
118
118
And I see "Setting grails 2.1.0 as default."
119
119
Then the candidate "grails" version "2.1.0" should be the default
@@ -124,7 +124,7 @@ Feature: Upgrade Candidate
124
124
And the candidate "grails" version "2.1.0" is available for download
125
125
And the system is bootstrapped
126
126
When I enter "sdk upgrade grails" and answer "N"
127
- Then I see "Upgrade :"
128
- And I see "grails (1.3.9 < 2.1.0)"
129
- And I see "Upgrade candidate(s) and set latest version(s) as default ? (Y/n)"
127
+ Then I see "Available defaults :"
128
+ And I see "grails (local: 1.3.9; default: 2.1.0)"
129
+ And I see "Upgrade to latest default version(s)? (Y/n)"
130
130
Then the candidate "grails" version "1.3.9" should be the default
0 commit comments