Polish "Deprecate running an application in the Maven JVM"
See gh-30479
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2022 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.
|
||||
@@ -45,12 +45,14 @@ class RunIntegrationTests {
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
@Deprecated
|
||||
void whenForkingIsDisabledAndDevToolsIsPresentDevToolsIsDisabled(MavenBuild mavenBuild) {
|
||||
mavenBuild.project("run-devtools").goals("spring-boot:run").execute((project) -> assertThat(buildLog(project))
|
||||
.contains("I haz been run").contains("Fork mode disabled, devtools will be disabled"));
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
@Deprecated
|
||||
void whenForkingIsDisabledJvmArgumentsAndWorkingDirectoryAreIgnored(MavenBuild mavenBuild) {
|
||||
mavenBuild.project("run-disable-fork").goals("spring-boot:run")
|
||||
.execute((project) -> assertThat(buildLog(project)).contains("I haz been run").contains(
|
||||
@@ -103,6 +105,7 @@ class RunIntegrationTests {
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
@Deprecated
|
||||
void whenProfilesAreConfiguredAndForkingIsDisabledTheyArePassedToTheApplication(MavenBuild mavenBuild) {
|
||||
mavenBuild.project("run-profiles-fork-disabled").goals("spring-boot:run").execute(
|
||||
(project) -> assertThat(buildLog(project)).contains("I haz been run with profile(s) 'foo,bar'"));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2022 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.
|
||||
@@ -33,6 +33,7 @@ import static org.assertj.core.api.Assertions.contentOf;
|
||||
class StartStopIntegrationTests {
|
||||
|
||||
@TestTemplate
|
||||
@Deprecated
|
||||
void startStopWithForkDisabledWaitsForApplicationToBeReadyAndThenRequestsShutdown(MavenBuild mavenBuild) {
|
||||
mavenBuild.project("start-stop-fork-disabled").goals("verify").execute(
|
||||
(project) -> assertThat(buildLog(project)).contains("isReady: true").contains("Shutdown requested"));
|
||||
|
||||
Reference in New Issue
Block a user