replace assertSame with assertEquals when comparing virtualFiles

This commit is contained in:
peter
2014-05-23 10:03:46 +02:00
parent 9ee6a48458
commit 81424753a2
3 changed files with 3 additions and 3 deletions
@@ -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();
@@ -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));