File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
components/sbm-openrewrite/src/test/java/org/springframework/sbm/support/openrewrite/api Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 27
27
import java .util .concurrent .atomic .AtomicBoolean ;
28
28
29
29
import static org .assertj .core .api .Assertions .assertThat ;
30
-
30
+ // does this trigger a build?
31
31
public class UpgradeDependencyVersionTest {
32
32
33
33
@ Language ("xml" )
@@ -151,6 +151,9 @@ void testUpgradeDependency_trustParent() {
151
151
152
152
@ Test
153
153
void testUpgradeDependency_latestReleaseVersion () {
154
+
155
+ String springBootVersion = getLatestBootReleaseVersion ();
156
+
154
157
@ Language ("xml" )
155
158
String expectedPomXml =
156
159
"""
@@ -176,11 +179,11 @@ void testUpgradeDependency_latestReleaseVersion() {
176
179
<groupId>org.springframework.boot</groupId>
177
180
<artifactId>spring-boot-starter-test</artifactId>
178
181
<scope>test</scope>
179
- <version>3.0.2 </version>
182
+ <version>%s </version>
180
183
</dependency>
181
184
</dependencies>
182
185
</project>
183
- """ ;
186
+ """ . formatted ( springBootVersion ) ;
184
187
185
188
String groupId = "org.springframework.boot" ;
186
189
String artifactId = "spring-boot-starter-test" ;
@@ -192,6 +195,10 @@ void testUpgradeDependency_latestReleaseVersion() {
192
195
assertThat (results .getResults ().get (0 ).getAfter ().printAll ()).isEqualTo (expectedPomXml );
193
196
}
194
197
198
+ private String getLatestBootReleaseVersion () {
199
+ return "3.0.3" ;
200
+ }
201
+
195
202
@ Test
196
203
void testUpgradeDependency_nullVersion () {
197
204
String groupId = "org.springframework.boot" ;
You can’t perform that action at this time.
0 commit comments