mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
replace assertSame with assertEquals when comparing virtualFiles
This commit is contained in:
@@ -730,7 +730,7 @@ public class DirectoryIndexTest extends IdeaTestCase {
|
||||
assertIteratedContent(fileIndex, null, Arrays.asList(fileRoot, fileSourceRoot, fileTestSourceRoot));
|
||||
|
||||
ContentEntry contentEntry = PsiTestUtil.addContentRoot(myModule, fileRoot);
|
||||
assertSame(fileRoot, contentEntry.getFile());
|
||||
assertEquals(fileRoot, contentEntry.getFile());
|
||||
checkInfo(fileRoot, myModule, false, false, "", null);
|
||||
assertTrue(fileIndex.isInContent(fileRoot));
|
||||
assertFalse(fileIndex.isInSource(fileRoot));
|
||||
|
||||
@@ -380,7 +380,7 @@ public class VfsUtilTest extends PlatformLangTestCase {
|
||||
public void run() throws Throwable {
|
||||
for (int i = 0; i < 1000000; i++) {
|
||||
VirtualFile child = vDir.findChild("5111.txt");
|
||||
assertSame(theChild, child);
|
||||
assertEquals(theChild, child);
|
||||
}
|
||||
}
|
||||
}).assertTiming();
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class PersistentFsTest extends PlatformLangTestCase {
|
||||
assertNotNull(vFile);
|
||||
|
||||
int id = ((VirtualFileWithId)vFile).getId();
|
||||
assertSame(vFile, myFs.findFileById(id));
|
||||
assertEquals(vFile, myFs.findFileById(id));
|
||||
|
||||
vFile.delete(this);
|
||||
assertNull(myFs.findFileById(id));
|
||||
|
||||
Reference in New Issue
Block a user