diff --git a/Core/test/qa-functional/src/org/sleuthkit/autopsy/modules/encryptiondetection/EncryptionDetectionTest.java b/Core/test/qa-functional/src/org/sleuthkit/autopsy/modules/encryptiondetection/EncryptionDetectionTest.java index 3bddfba89f..88f76c6707 100755 --- a/Core/test/qa-functional/src/org/sleuthkit/autopsy/modules/encryptiondetection/EncryptionDetectionTest.java +++ b/Core/test/qa-functional/src/org/sleuthkit/autopsy/modules/encryptiondetection/EncryptionDetectionTest.java @@ -82,7 +82,7 @@ public class EncryptionDetectionTest extends NbTestCase { String joinedErrors = String.join(System.lineSeparator(), errorMessages); assertEquals(joinedErrors, 0, errorMessages.size()); - Case openCase = Case.getOpenCase(); + Case openCase = Case.getCurrentCaseThrows(); /* * Create ingest job settings. */ @@ -187,7 +187,7 @@ public class EncryptionDetectionTest extends NbTestCase { //there will be 1 expected error regarding the encrypted partition not having a file system assertEquals(joinedErrors, 1, errorMessages.size()); - Case openCase = Case.getOpenCase(); + Case openCase = Case.getCurrentCaseThrows(); ArrayList templates = new ArrayList<>(); templates.add(IngestUtils.getIngestModuleTemplate(new EncryptionDetectionModuleFactory())); //image includes an encrypted container file with size greater than 5 mb so default settings detect it