@Test(expected = FileNotFoundException.class) public void missingFile() throws FileNotFoundException { StackTrace trace = new StackTrace(); trace.readFromFile(""); }
public BufferedReader readFromFile(String filePath) throws FileNotFoundException { File file = new File(filePath); BufferedReader br = new BufferedReader(new FileReader(file)); return br; }
StackTrace { public BufferedReader readFromFile(String filePath) throws FileNotFoundException { File file = new File(filePath); BufferedReader br = new BufferedReader(new FileReader(file)); return br; } }
StackTrace { public BufferedReader readFromFile(String filePath) throws FileNotFoundException { File file = new File(filePath); BufferedReader br = new BufferedReader(new FileReader(file)); return br; }  }
StackTrace { public BufferedReader readFromFile(String filePath) throws FileNotFoundException { File file = new File(filePath); BufferedReader br = new BufferedReader(new FileReader(file)); return br; }  void setup(String logPath, int frameLevel); int getTargetFrameLevel(); String getExceptionType(); String getTargetClass(); StackTraceElement getFrame(int index); int getNumberOfFrames(); String getTargetMethod(); int getTargetLine(); ArrayList<StackTraceElement> getFrames(); ArrayList<StackTraceElement> getAllFrames(); BufferedReader readFromFile(String filePath); List<String> getTargetClasses(); void addIrrelevantFrameLevel(int frameLevel); boolean isIrrelevantFrame(int frameLevel); void updatePublicTargetFrameLevel(int newLevel); int getPublicTargetFrameLevel(); }
StackTrace { public BufferedReader readFromFile(String filePath) throws FileNotFoundException { File file = new File(filePath); BufferedReader br = new BufferedReader(new FileReader(file)); return br; }  void setup(String logPath, int frameLevel); int getTargetFrameLevel(); String getExceptionType(); String getTargetClass(); StackTraceElement getFrame(int index); int getNumberOfFrames(); String getTargetMethod(); int getTargetLine(); ArrayList<StackTraceElement> getFrames(); ArrayList<StackTraceElement> getAllFrames(); BufferedReader readFromFile(String filePath); List<String> getTargetClasses(); void addIrrelevantFrameLevel(int frameLevel); boolean isIrrelevantFrame(int frameLevel); void updatePublicTargetFrameLevel(int newLevel); int getPublicTargetFrameLevel();  }