mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Upgrade test infrastructure to more recent Spring Boot versions
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user