File tree 1 file changed +3
-2
lines changed
src/test/java/com/superzanti/serversync
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
import org .junit .jupiter .api .Test ;
8
8
9
9
import java .nio .file .Path ;
10
+ import java .nio .file .Paths ;
10
11
11
12
class LineFeedTest {
12
13
@@ -19,8 +20,8 @@ public LineFeedTest() {
19
20
@ DisplayName ("Should hash text files ignoring line feeds" )
20
21
void textHash () {
21
22
// We know these resource files will not be null
22
- Path crlf = Path . of (getClass ().getResource ("/hash_crlf.txt" ).getPath ().substring (1 ));
23
- Path lf = Path . of (getClass ().getResource ("/hash_lf.txt" ).getPath ().substring (1 ));
23
+ Path crlf = Paths . get (getClass ().getResource ("/hash_crlf.txt" ).getPath ().substring (1 ));
24
+ Path lf = Paths . get (getClass ().getResource ("/hash_lf.txt" ).getPath ().substring (1 ));
24
25
25
26
String hashLF = FileHash .hashFile (lf );
26
27
String hashCRLF = FileHash .hashFile (crlf );
You can’t perform that action at this time.
0 commit comments