19 package org.sleuthkit.autopsy.testutils;
21 import java.nio.file.Path;
22 import java.nio.file.Paths;
46 Path caseDirectoryPath = Paths.get(System.getProperty(
"java.io.tmpdir"), uniqueCaseName);
47 Case currentCase = null;
52 throw new TestUtilsException(String.format(
"Failed to create case %s at %s", uniqueCaseName, caseDirectoryPath), ex);
67 throw new TestUtilsException(
"Failed to get current case.", ex);
70 String caseName = currentCase.
getName();
75 throw new TestUtilsException(String.format(
"Failed to close case %s at %s", caseName, caseDirectory), ex);
static void closeCurrentCase()
String getCaseDirectory()
static String createTimeStamp()
static void closeCurrentCase()
static Case getCurrentCaseThrows()
static void createAsCurrentCase(String caseDir, String caseDisplayName, String caseNumber, String examiner, CaseType caseType)
static Case createAsCurrentCase(String caseName)