Upgrade test infrastructure to more recent Spring Boot versions

This commit is contained in:
Stephane Nicoll
2020-11-27 15:28:10 +01:00
parent 9514753cc7
commit 54d104e2e2
83 changed files with 248 additions and 228 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -145,7 +145,7 @@ class ProjectGenerationStatPublisherTests {
request.setGroupId("com.example.acme");
request.setArtifactId("project");
request.setType("maven-project");
request.setBootVersion("2.1.1.RELEASE");
request.setBootVersion("2.4.1");
request.setDependencies(Arrays.asList("web", "data-jpa"));
request.setLanguage("java");
request.getParameters().put("user-agent", "curl/1.2.4");

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -61,9 +61,9 @@ class ProjectRequestDocumentFactoryTests {
assertThat(document.getPackageName()).isEqualTo("com.example.demo");
assertThat(document.getPackaging()).isEqualTo("jar");
assertThat(document.getType()).isEqualTo("maven-project");
assertThat(document.getVersion().getId()).isEqualTo("2.1.1.RELEASE");
assertThat(document.getVersion().getId()).isEqualTo("2.4.1");
assertThat(document.getVersion().getMajor()).isEqualTo("2");
assertThat(document.getVersion().getMinor()).isEqualTo("2.1");
assertThat(document.getVersion().getMinor()).isEqualTo("2.4");
}
@Test

View File

@@ -9,9 +9,9 @@
"packaging": "jar",
"packageName": "com.example.acme.project",
"version": {
"id": "2.1.1.RELEASE",
"id": "2.4.1",
"major": "2",
"minor": "2.1"
"minor": "2.4"
},
"client": {
"id": "curl",