@Test public void createDirectoriesDoesntExistsTest() throws Exception { File directory = new File(folder.getRoot(), "a"); assertTrue(AllureResultsUtils.createDirectories(directory)); }
public static boolean createDirectories(File dir) { return dir.exists() || dir.mkdirs(); }
AllureResultsUtils { public static boolean createDirectories(File dir) { return dir.exists() || dir.mkdirs(); } }
AllureResultsUtils { public static boolean createDirectories(File dir) { return dir.exists() || dir.mkdirs(); } AllureResultsUtils(); }
AllureResultsUtils { public static boolean createDirectories(File dir) { return dir.exists() || dir.mkdirs(); } AllureResultsUtils(); static File getResultsDirectory(); static boolean createDirectories(File dir); static void setResultsDirectory(File resultsDirectory); static void writeTestSuiteResult(TestSuiteResult testSuite); static void writeTestSuiteResult(TestSuiteResult testSuite, File testSuiteResultFile); static Marshaller marshaller(Class<?> clazz); static Marshaller createMarshallerForClass(Class<?> clazz); static void setPropertySafely(Marshaller marshaller, String name, Object value); static boolean deleteAttachment(Attachment attachment); static Attachment writeAttachmentSafely(byte[] attachment, String title, String type); static Attachment writeAttachmentWithErrorMessage(Throwable throwable, String title); static Attachment writeAttachment(byte[] attachment, String title, String type); static Attachment writeAttachment(byte[] attachment, String title); static String generateAttachmentName(); static String getExtensionByMimeType(String type); }
AllureResultsUtils { public static boolean createDirectories(File dir) { return dir.exists() || dir.mkdirs(); } AllureResultsUtils(); static File getResultsDirectory(); static boolean createDirectories(File dir); static void setResultsDirectory(File resultsDirectory); static void writeTestSuiteResult(TestSuiteResult testSuite); static void writeTestSuiteResult(TestSuiteResult testSuite, File testSuiteResultFile); static Marshaller marshaller(Class<?> clazz); static Marshaller createMarshallerForClass(Class<?> clazz); static void setPropertySafely(Marshaller marshaller, String name, Object value); static boolean deleteAttachment(Attachment attachment); static Attachment writeAttachmentSafely(byte[] attachment, String title, String type); static Attachment writeAttachmentWithErrorMessage(Throwable throwable, String title); static Attachment writeAttachment(byte[] attachment, String title, String type); static Attachment writeAttachment(byte[] attachment, String title); static String generateAttachmentName(); static String getExtensionByMimeType(String type);  }