GspJsFormatterTest: used fixed misuse of TestUtils.readInput; used Files.readAllLines instead

This commit is contained in:
Tagir Valeev
2018-07-04 14:28:11 +07:00
parent 0443dea061
commit 126907b3b8
@@ -144,6 +144,12 @@ public abstract class TestUtils {
return text.substring(0, index) + text.substring(index + END_MARKER.length());
}
/**
* Reads input file which consists at least of two sections separated with "-----" line
* @param filePath file to read
* @return a list of sections read from the file
* @throws RuntimeException if any IO problem occurs
*/
public static List<String> readInput(String filePath) {
String content;
try {
@@ -211,7 +217,7 @@ public abstract class TestUtils {
}
if (missedVariants.size() > 0) {
Assert.assertTrue("Some completion variants are missed " + missedVariants, false);
Assert.fail("Some completion variants are missed " + missedVariants);
}
}