This commit is contained in:
Phillip Webb 2015-09-29 10:08:29 -07:00
parent e9878ebb5d
commit 69d57f9a35
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class ApplicationPidFileWriterTests {
@Test
public void overridePidFileWithSpring() throws Exception {
File file = this.temporaryFolder.newFile();
SpringApplicationEvent event = createPreparedEvent("spring.pidfile",
SpringApplicationEvent event = createPreparedEvent("spring.pid.file",
file.getAbsolutePath());
ApplicationPidFileWriter listener = new ApplicationPidFileWriter();
listener.onApplicationEvent(event);
@ -102,7 +102,7 @@ public class ApplicationPidFileWriterTests {
@Test
public void differentEventTypes() throws Exception {
File file = this.temporaryFolder.newFile();
SpringApplicationEvent event = createEnvironmentPreparedEvent("spring.pidfile",
SpringApplicationEvent event = createEnvironmentPreparedEvent("spring.pid.file",
file.getAbsolutePath());
ApplicationPidFileWriter listener = new ApplicationPidFileWriter();
listener.onApplicationEvent(event);