aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/java/com/intellij
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-03-23 16:35:10 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-03-23 16:37:33 +0300
commit0fccc3f91c08b3f3d149a11c81946e1824fc821e (patch)
tree1a2b3f711e56c96eff60b08f4c7215c698f95509 /core/src/test/java/com/intellij
parent8f60abd5d1e0dba659c433a9a37561c4d78c1c12 (diff)
downloaddokka-0fccc3f91c08b3f3d149a11c81946e1824fc821e.tar.gz
dokka-0fccc3f91c08b3f3d149a11c81946e1824fc821e.tar.bz2
dokka-0fccc3f91c08b3f3d149a11c81946e1824fc821e.zip
Add support for nice IDEA feature
Diffstat (limited to 'core/src/test/java/com/intellij')
-rw-r--r--core/src/test/java/com/intellij/rt/execution/junit/FileComparisonFailure.java39
-rw-r--r--core/src/test/java/com/intellij/rt/execution/junit/KnownException.java6
2 files changed, 45 insertions, 0 deletions
diff --git a/core/src/test/java/com/intellij/rt/execution/junit/FileComparisonFailure.java b/core/src/test/java/com/intellij/rt/execution/junit/FileComparisonFailure.java
new file mode 100644
index 00000000..cbb1cc3c
--- /dev/null
+++ b/core/src/test/java/com/intellij/rt/execution/junit/FileComparisonFailure.java
@@ -0,0 +1,39 @@
+
+package com.intellij.rt.execution.junit;
+
+import junit.framework.ComparisonFailure;
+
+public class FileComparisonFailure extends ComparisonFailure implements KnownException {
+ private final String myExpected;
+ private final String myActual;
+ private final String myFilePath;
+ private final String myActualFilePath;
+
+ public FileComparisonFailure(String message, String expected, String actual, String filePath) {
+ this(message, expected, actual, filePath, (String)null);
+ }
+
+ public FileComparisonFailure(String message, String expected, String actual, String expectedFilePath, String actualFilePath) {
+ super(message, expected, actual);
+ this.myExpected = expected;
+ this.myActual = actual;
+ this.myFilePath = expectedFilePath;
+ this.myActualFilePath = actualFilePath;
+ }
+
+ public String getFilePath() {
+ return this.myFilePath;
+ }
+
+ public String getActualFilePath() {
+ return this.myActualFilePath;
+ }
+
+ public String getExpected() {
+ return this.myExpected;
+ }
+
+ public String getActual() {
+ return this.myActual;
+ }
+}
diff --git a/core/src/test/java/com/intellij/rt/execution/junit/KnownException.java b/core/src/test/java/com/intellij/rt/execution/junit/KnownException.java
new file mode 100644
index 00000000..c24653ea
--- /dev/null
+++ b/core/src/test/java/com/intellij/rt/execution/junit/KnownException.java
@@ -0,0 +1,6 @@
+
+package com.intellij.rt.execution.junit;
+
+interface KnownException {
+
+}