mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ExpectedHighlightingData - remove expectedDuplicatedHighlightingThrowable temporary wrapper
This commit is contained in:
@@ -29,7 +29,6 @@ import com.intellij.rt.execution.junit.FileComparisonFailure;
|
||||
import com.intellij.testFramework.fixtures.CodeInsightTestFixture;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import com.intellij.util.ThreeState;
|
||||
import com.intellij.util.ThrowableRunnable;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import gnu.trove.THashMap;
|
||||
import gnu.trove.THashSet;
|
||||
@@ -605,21 +604,6 @@ public class ExpectedHighlightingData {
|
||||
}
|
||||
}
|
||||
|
||||
/** This is temporary wrapper to provide a time to fix failing tests */
|
||||
public static void expectedDuplicatedHighlightingThrowable(@NotNull ThrowableRunnable check) throws Throwable {
|
||||
try {
|
||||
isDuplicatedCheckDisabled = true;
|
||||
failedDuplicationChecks = 0;
|
||||
check.run();
|
||||
}
|
||||
finally {
|
||||
isDuplicatedCheckDisabled = false;
|
||||
}
|
||||
if (failedDuplicationChecks == 0) {
|
||||
throw new IllegalStateException(EXPECTED_DUPLICATION_MESSAGE);
|
||||
}
|
||||
}
|
||||
|
||||
private static int[] composeText(StringBuilder sb,
|
||||
List<? extends Pair<String, HighlightInfo>> list, int index,
|
||||
String text, int endPos, int startPos,
|
||||
|
||||
Reference in New Issue
Block a user