Skip to content

Commit

Permalink
Ignore test for read-only temp folder on Windows (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler authored and marcphilipp committed Oct 18, 2019
1 parent 34cfd13 commit f727ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/junit/rules/TemporaryFolderUsageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -97,7 +98,7 @@ public void newFolderWithGivenFolderThrowsIOExceptionIfFileExists() throws IOExc
@Test
public void newFolderWithGivenFolderThrowsIOExceptionWhenFolderCannotBeCreated() throws IOException {
tempFolder.create();
assertTrue("Could not make folder " + tempFolder.getRoot() + " read only.",
assumeTrue("Could not make folder " + tempFolder.getRoot() + " read only.",
tempFolder.getRoot().setReadOnly());

thrown.expect(IOException.class);
Expand Down

0 comments on commit f727ecf

Please sign in to comment.