Debugger tests: throw FileComparisonFailure instaed of ComparisonFailure

This commit is contained in:
Natalia Ukhorskaya
2015-09-01 11:40:37 +03:00
parent f36f0f8de7
commit 73ae0751ee
@@ -46,6 +46,7 @@ import org.jetbrains.kotlin.name.FqName;
import org.jetbrains.kotlin.psi.JetFile;
import org.jetbrains.kotlin.test.JetTestUtils;
import org.jetbrains.kotlin.test.MockLibraryUtil;
import org.junit.ComparisonFailure;
import java.io.File;
import java.io.IOException;
@@ -224,4 +225,16 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase {
protected Sdk getTestProjectJdk() {
return PluginTestCaseBase.fullJdk();
}
@Override
protected void checkTestOutput() throws Exception {
try {
super.checkTestOutput();
}
catch (ComparisonFailure e) {
JetTestUtils.assertEqualsToFile(
new File(getTestAppPath() + File.separator + "outs" + File.separator + getTestName(true) + ".out"),
e.getActual());
}
}
}