FIR IDE: abstract low-level-api from dependency on idea
This commit is contained in:
@@ -60,6 +60,7 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Method;
|
||||
import java.nio.file.Path;
|
||||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
@@ -272,6 +273,10 @@ public class KotlinTestUtils {
|
||||
assertEqualsToFile(expectedFile, afterText);
|
||||
}
|
||||
|
||||
public static void assertEqualsToFile(@NotNull Path expectedFile, @NotNull String actual) {
|
||||
assertEqualsToFile(expectedFile.toFile(), actual);
|
||||
}
|
||||
|
||||
public static void assertEqualsToFile(@NotNull File expectedFile, @NotNull String actual) {
|
||||
assertEqualsToFile(expectedFile, actual, s -> s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user