aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution
diff options
context:
space:
mode:
Diffstat (limited to 'runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution')
-rw-r--r--runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution/junit/FileComparisonFailure.java39
-rw-r--r--runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution/junit/KnownException.java6
2 files changed, 45 insertions, 0 deletions
diff --git a/runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution/junit/FileComparisonFailure.java b/runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution/junit/FileComparisonFailure.java
new file mode 100644
index 00000000..cbb1cc3c
--- /dev/null
+++ b/runners/gradle-integration-tests/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/runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution/junit/KnownException.java b/runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution/junit/KnownException.java
new file mode 100644
index 00000000..c24653ea
--- /dev/null
+++ b/runners/gradle-integration-tests/src/test/java/com/intellij/rt/execution/junit/KnownException.java
@@ -0,0 +1,6 @@
+
+package com.intellij.rt.execution.junit;
+
+interface KnownException {
+
+}