Go to the documentation of this file.
19package org.sleuthkit.autopsy.testutils;
21import java.nio.file.Path;
22import java.nio.file.Paths;
23import org.sleuthkit.autopsy.casemodule.Case;
24import org.sleuthkit.autopsy.casemodule.CaseActionException;
25import org.sleuthkit.autopsy.casemodule.CaseDetails;
26import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
27import org.sleuthkit.autopsy.coreutils.TimeStampUtils;
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);
70 String caseName = currentCase.
getName();
75 throw new TestUtilsException(String.format(
"Failed to close case %s at %s", caseName, caseDirectory), ex);
static void closeCurrentCase()
static Case getCurrentCaseThrows()
String getCaseDirectory()
static void createAsCurrentCase(String caseDir, String caseDisplayName, String caseNumber, String examiner, CaseType caseType)
static String createTimeStamp()
static Case createAsCurrentCase(String caseName)
static void closeCurrentCase()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.