junit-team / junit4

A programmer-oriented testing framework for Java.
https://junit.org/junit4
Eclipse Public License 1.0
8.53k stars 3.29k forks source link

test error #1713

Closed rajusah15 closed 3 years ago

rajusah15 commented 3 years ago

while executing the mvn test, getting below error Test set: org.junit.rules.TemporaryFolderUsageTest

Tests run: 24, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE! - in org.junit.rules.TemporaryFolderUsageTest newFolderWithGivenFolderThrowsIOExceptionWhenFolderCannotBeCreated(org.junit.rules.TemporaryFolderUsageTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.AssertionError: Expected test to throw (an instance of java.io.IOException and exception with message a string containing "could not create a folder with the path 'level1'")

pmcder commented 3 years ago

It looks like #1705 was about this issue as well. I haven't been able to reproduce in my branch/environment. There were some follow up questions on #1705 that might provide some more insight here.

marcphilipp commented 3 years ago

Duplicate of #1705