Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Try to fix failing test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Mar 21, 2020
1 parent de5fac1 commit b2b4fe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ File file() {
return file("temp");
}

File executableFile() {
return file();
}

File file(String name) {
try {
return Files.createFile(tmpDir.resolve(name)).toFile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void shouldValidateStringRepresentingExecutableDirectory() {
@Test
public void shouldValidateStringRepresentingExecutableFile() {
File file = file();
file.setExecutable(true);
file.setExecutable(true, false);
fileBean.path = file.getAbsolutePath();

validator.assertNoViolations("path");
Expand All @@ -83,7 +83,7 @@ public void shouldValidateStringRepresentingExecutableFile() {
@Test
public void shouldNotValidateStringRepresentingNonExecutableFile() {
File file = file();
file.setExecutable(false);
file.setExecutable(false, false);
fileBean.path = file.getAbsolutePath();

validator.assertViolation("path");
Expand Down

0 comments on commit b2b4fe1

Please sign in to comment.