mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't createNewFile in assertion, running without -ea will ruin side effect
This commit is contained in:
+2
-1
@@ -145,7 +145,8 @@ public class LocalFileSystemTest extends PlatformLangTestCase {
|
||||
final File dirFile = createTempDirectory();
|
||||
final String name = "te\u00dft123123123.txt";
|
||||
final File childFile = new File(dirFile, name);
|
||||
assert childFile.createNewFile() || childFile.exists() : childFile;
|
||||
boolean created = childFile.createNewFile();
|
||||
assert created || childFile.exists() : childFile;
|
||||
|
||||
final VirtualFile dir = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(dirFile);
|
||||
assertNotNull(dir);
|
||||
|
||||
Reference in New Issue
Block a user