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 44
55import  org .opentest4j .AssertionFailedError ;
66
7- import  com .intellij .rt . execution . junit . FileComparisonFailure ;
7+ import  com .intellij .platform . testFramework . core . FileComparisonFailedError ;
88
99
1010public  final  class  JUnit5Utils 
@@ -16,10 +16,10 @@ private JUnit5Utils()
1616	public  static  void  rethrowAsJunit5Error (final  AssertionError  error )
1717	{
1818		if (error .getCause () instanceof  final  InvocationTargetException  intellijInternal 
19- 			&& intellijInternal .getCause () instanceof  final  FileComparisonFailure  fileComparisonFailure )
19+ 			&& intellijInternal .getCause () instanceof  final  FileComparisonFailedError  fileComparisonFailure )
2020		{
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 () ;
2323			throw  new  AssertionFailedError ("Expected file do not match actual file" , expected , actual );
2424		}
2525
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments