From 7c96bc07133401df20b83c081f9c0c33caddd88a Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Tue, 8 May 2018 16:31:10 -0400 Subject: [PATCH] 3752 change calls to getOpenCase to getCurrentCaseThrows --- .../modules/encryptiondetection/EncryptionDetectionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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