void (@NotNull String text, @NotNull String linkSubText, @NotNull String fileName, int lineNumber) { LinkInTrace linkInTrace = new PyTestTracebackParser().findLinkInTrace(text); assertNotNull("Failed to parse line", linkInTrace); assertEquals("Bad file name", fileName, linkInTrace.getFileName()); assertEquals("Bad line number", lineNumber, linkInTrace.getLineNumber()); assertEquals(linkSubText, text.substring(linkInTrace.getStartPos(), linkInTrace.getEndPos())); }