[bs-55] Add strategy for setting system exit code
* Added ExitCodeGenerator and SpringApplication.exit convenience method * User can add bean of type ExitCodeGenerator or supply one in the call to exit() [Fixes #48475971]
This commit is contained in:
@@ -45,7 +45,7 @@ public class SimpleBootstrapApplicationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCommandLoneOverrides() throws Exception {
|
||||
public void testCommandLineOverrides() throws Exception {
|
||||
SimpleBootstrapApplication.main(new String[] { "--name=Gordon" });
|
||||
String output = getOutput();
|
||||
assertTrue("Wrong output: " + output, output.contains("Hello Gordon"));
|
||||
|
||||
Reference in New Issue
Block a user