This is what I am trying below on JUnit test class.
String imagePath = "/Users/mymacbook/Desktop/Web_Projects/books/EffectiveJava.jpg";
byte[] imageBytes = Files.readAllBytes(Paths.get(imagePath));
This is in the test class but when I run the test class I get the below error.
java.nio.file.NoSuchFileException: /Users/mymacbook/Desktop/Web_Projects/books/EffectiveJava.jpg
The above path is external to Java project.
Any help would be greatly appreciated.