void () { File file = tempDir.newFile("dir/0"); assertFalse(FileSystemUtil.isCaseToggleable(file.getName())); VirtualDirectoryImpl dir = (VirtualDirectoryImpl)LocalFileSystem.getInstance().refreshAndFindFileByIoFile(file.getParentFile()); assertNotNull(dir); assertEquals(CaseSensitivity.UNKNOWN, dir.getChildrenCaseSensitivity()); VirtualDirectoryImpl.generateCaseSensitivityChangedEventForUnknownCase(dir, file.getName()); CaseSensitivity expected = SystemInfo.isFileSystemCaseSensitive ? CaseSensitivity.SENSITIVE : CaseSensitivity.INSENSITIVE; assertEquals(expected, dir.getChildrenCaseSensitivity()); assertEquals(expected == CaseSensitivity.SENSITIVE, dir.isCaseSensitive()); }