/** * Gets log. * * @param path the report location * @return the log */ @Nonnull public static NotebookOutput getLog(final File path) { try { StackTraceElement callingFrame = Thread.currentThread().getStackTrace()[2]; String methodName = callingFrame.getMethodName(); path.getParentFile().mkdirs(); return new MarkdownNotebookOutput(new File(path, methodName), TestSettings.INSTANCE.autobrowse); } catch (FileNotFoundException e) { throw new RuntimeException(e); } }
/** * Get markdown notebook output. * * @param path the path * @param autobrowse the autobrowse * @return the markdown notebook output */ public static NotebookOutput get(File path, final boolean autobrowse) { try { StackTraceElement callingFrame = Thread.currentThread().getStackTrace()[2]; String methodName = callingFrame.getMethodName(); path.getAbsoluteFile().getParentFile().mkdirs(); return new MarkdownNotebookOutput(new File(path, methodName), autobrowse); } catch (FileNotFoundException e) { throw new RuntimeException(e); } }
/** * Gets log. * * @param path the report location * @return the log */ @Nonnull public static NotebookOutput getLog(final File path) { try { StackTraceElement callingFrame = Thread.currentThread().getStackTrace()[2]; String methodName = callingFrame.getMethodName(); path.getParentFile().mkdirs(); return new MarkdownNotebookOutput(new File(path, methodName), TestSettings.INSTANCE.autobrowse); } catch (FileNotFoundException e) { throw new RuntimeException(e); } }
/** * Get markdown notebook output. * * @param path the path * @param autobrowse the autobrowse * @return the markdown notebook output */ public static NotebookOutput get(File path, final boolean autobrowse) { try { StackTraceElement callingFrame = Thread.currentThread().getStackTrace()[2]; String methodName = callingFrame.getMethodName(); path.getAbsoluteFile().getParentFile().mkdirs(); return new MarkdownNotebookOutput(new File(path, methodName), autobrowse); } catch (FileNotFoundException e) { throw new RuntimeException(e); } }
/** * Gets log. * * @param path the report location * @return the log */ @Nonnull public static NotebookOutput getLog(final File path) { try { StackTraceElement callingFrame = Thread.currentThread().getStackTrace()[2]; String methodName = callingFrame.getMethodName(); path.getParentFile().mkdirs(); return new MarkdownNotebookOutput(new File(path, methodName), TestSettings.INSTANCE.autobrowse); } catch (FileNotFoundException e) { throw new RuntimeException(e); } }