@@ -962,10 +962,10 @@ void nullSafeConciseToStringForUUID() {
962
962
963
963
@ Test
964
964
void nullSafeConciseToStringForFile () {
965
- String path = "/tmp/file.txt" ;
965
+ String path = "/tmp/file.txt" . replace ( '/' , File . separatorChar ) ;
966
966
assertThat (ObjectUtils .nullSafeConciseToString (new File (path ))).isEqualTo (path );
967
967
968
- path = "/tmp/" + repeat ("xyz" , 32 );
968
+ path = ( "/tmp/" + repeat ("xyz" , 32 )). replace ( '/' , File . separatorChar );
969
969
assertThat (ObjectUtils .nullSafeConciseToString (new File (path )))
970
970
.hasSize (truncatedLength )
971
971
.startsWith (path .subSequence (0 , 100 ))
@@ -974,10 +974,10 @@ void nullSafeConciseToStringForFile() {
974
974
975
975
@ Test
976
976
void nullSafeConciseToStringForPath () {
977
- String path = "/tmp/file.txt" ;
977
+ String path = "/tmp/file.txt" . replace ( '/' , File . separatorChar ) ;
978
978
assertThat (ObjectUtils .nullSafeConciseToString (Paths .get (path ))).isEqualTo (path );
979
979
980
- path = "/tmp/" + repeat ("xyz" , 32 );
980
+ path = ( "/tmp/" + repeat ("xyz" , 32 )). replace ( '/' , File . separatorChar );
981
981
assertThat (ObjectUtils .nullSafeConciseToString (Paths .get (path )))
982
982
.hasSize (truncatedLength )
983
983
.startsWith (path .subSequence (0 , 100 ))
0 commit comments