ResolveTestCase: more useful error message.

I forget which tests expect <caret> or a different marker.
This commit is contained in:
Maxim Kropotov
2017-07-05 14:53:41 +03:00
parent 148af74450
commit a2feb2f3c3
@@ -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) {