added assertion on attempt to remove ContentEntry obtained from another instance of ModuleRootModel

This commit is contained in:
nik
2014-07-25 10:05:19 +04:00
parent 802db2cf3d
commit 9b94de6073
4 changed files with 15 additions and 4 deletions
@@ -753,7 +753,7 @@ public class DirectoryIndexTest extends IdeaTestCase {
assertIteratedContent(fileIndex, Arrays.asList(fileRoot, fileSourceRoot, fileTestSourceRoot), null);
// removing file content root
PsiTestUtil.removeContentEntry(myModule, contentEntry);
PsiTestUtil.removeContentEntry(myModule, contentEntry.getFile());
assertNotInProject(fileRoot);
assertFalse(fileIndex.isInContent(fileRoot));
assertFalse(fileIndex.isInSource(fileRoot));