mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ResolveTestCase: more useful error message.
I forget which tests expect <caret> or a different marker.
This commit is contained in:
@@ -60,7 +60,7 @@ public abstract class ResolveTestCase extends PsiTestCase {
|
||||
|
||||
protected PsiReference configureByFileText(String fileText, String fileName, @Nullable VirtualFile parentDir) throws Exception {
|
||||
int offset = fileText.indexOf(MARKER);
|
||||
assertTrue(offset >= 0);
|
||||
assertTrue(String.format("Expected to find %s marker in file but was none", MARKER), offset >= 0);
|
||||
fileText = fileText.substring(0, offset) + fileText.substring(offset + MARKER.length());
|
||||
|
||||
if (parentDir == null) {
|
||||
|
||||
Reference in New Issue
Block a user