I am facing an issue to mock below mention line using Roboelectric or Powermockito
File file = new File(context.getFilesDir() + FILE_NAME);
Scanner scanner = new Scanner(file, "UTF-8")
it throws me the below exception
java.io.FileNotFoundException: "data/data/Logs/Text.txt" (The system cannot find the file specified)
Even though I was able to mock the file and set the path to the file.
Any suggestion on how to mock the scanner class.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…