mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-341258 [Core|TestFramework] workaround: don't use new methods for FileComparisonFailure
Idea class loader in tests leaks for FileComparisonFailure. It takes FileComparisonFailure from IDE's local installation instead of test module dependency. GitOrigin-RevId: 94d4867f5a169f1079482844bcaf67440ffa167d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2814a38cce
commit
da28ba9d42
@@ -16,10 +16,6 @@ public class FileComparisonFailure extends ComparisonFailure implements FileComp
|
||||
private final String myFilePath;
|
||||
private final String myActualFilePath;
|
||||
|
||||
public FileComparisonFailure(String message, /*@NotNull */String expected, /*@NotNull */String actual) {
|
||||
this(message, expected, actual, null, null);
|
||||
}
|
||||
|
||||
public FileComparisonFailure(String message, /*@NotNull */String expected, /*@NotNull */String actual, String expectedFilePath) {
|
||||
this(message, expected, actual, expectedFilePath, null);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1852,7 +1852,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
|
||||
|
||||
if (!Objects.equals(expectedText, actualText)) {
|
||||
if (loader.filePath == null) {
|
||||
throw new FileComparisonFailure(expectedFile, expectedText, actualText);
|
||||
throw new FileComparisonFailure(expectedFile, expectedText, actualText, null);
|
||||
}
|
||||
|
||||
if (loader.caretState.hasExplicitCaret()) {
|
||||
|
||||
Reference in New Issue
Block a user