Convert thread to an actual application

User can now use spring boot CLI as before or alternatively just
java -jar the deployer app.
This commit is contained in:
Dave Syer
2016-12-15 14:43:48 +00:00
parent e3a0dc8395
commit 7e31e9b36c
7 changed files with 75 additions and 81 deletions

View File

@@ -30,7 +30,7 @@ public class LauncherCommandTests {
@Rule
public OutputCapture output = new OutputCapture();
@Test
public void testCreateClassLoaderAndListDeployables() throws Exception {
new LauncherCommand().run("--list");
@@ -39,7 +39,8 @@ public class LauncherCommandTests {
@Test
public void testNonOptionArgsPassedDown() throws Exception {
new LauncherCommand().run("--list", "--", "--spring.profiles.active=test");
new LauncherCommand().run("--list", "--", "--spring.profiles.active=test",
"--spring.config.location=file:./src/test/resources/");
assertThat(output.toString(), containsString("foo"));
}