File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/software/xdev/saveactions/junit Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import org .opentest4j .AssertionFailedError ;
6
6
7
- import com .intellij .rt . execution . junit . FileComparisonFailure ;
7
+ import com .intellij .platform . testFramework . core . FileComparisonFailedError ;
8
8
9
9
10
10
public final class JUnit5Utils
@@ -16,10 +16,10 @@ private JUnit5Utils()
16
16
public static void rethrowAsJunit5Error (final AssertionError error )
17
17
{
18
18
if (error .getCause () instanceof final InvocationTargetException intellijInternal
19
- && intellijInternal .getCause () instanceof final FileComparisonFailure fileComparisonFailure )
19
+ && intellijInternal .getCause () instanceof final FileComparisonFailedError fileComparisonFailure )
20
20
{
21
- final String expected = fileComparisonFailure .getExpected ();
22
- final String actual = fileComparisonFailure .getActual ();
21
+ final String expected = fileComparisonFailure .getExpected (). getStringRepresentation () ;
22
+ final String actual = fileComparisonFailure .getActual (). getStringRepresentation () ;
23
23
throw new AssertionFailedError ("Expected file do not match actual file" , expected , actual );
24
24
}
25
25
You can’t perform that action at this time.
0 commit comments