Fix FileSystemWatcherTests.sourceFolderMustExist on Windows

This commit is contained in:
Andy Wilkinson 2015-10-05 17:32:07 +01:00
parent 2292cff1ea
commit 60d508cda2

View File

@ -113,8 +113,8 @@ public class FileSystemWatcherTests {
File folder = new File("does/not/exist");
assertThat(folder.exists(), is(false));
this.thrown.expect(IllegalArgumentException.class);
this.thrown
.expectMessage("Folder 'does/not/exist' must exist and must be a directory");
this.thrown.expectMessage("Folder '" + folder
+ "' must exist and must be a directory");
this.watcher.addSourceFolder(folder);
}