From e70fc3210c592bb4e9359bc8c264d757ea127ad6 Mon Sep 17 00:00:00 2001 From: Brian Sweeney Date: Thu, 23 Aug 2018 10:47:12 -0600 Subject: [PATCH] assertion api changed slightly --- .../IngestedWithHashAndFileTypeInterCaseTests.java | 2 +- .../sleuthkit/autopsy/commonfilessearch/InterCaseTestUtils.java | 2 +- .../sleuthkit/autopsy/commonfilessearch/IntraCaseTestUtils.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IngestedWithHashAndFileTypeInterCaseTests.java b/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IngestedWithHashAndFileTypeInterCaseTests.java index a35a6c7273..a425ecbcc8 100644 --- a/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IngestedWithHashAndFileTypeInterCaseTests.java +++ b/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IngestedWithHashAndFileTypeInterCaseTests.java @@ -231,7 +231,7 @@ public class IngestedWithHashAndFileTypeInterCaseTests extends NbTestCase { } catch (TskCoreException | NoCurrentCaseException | SQLException | EamDbException ex) { Exceptions.printStackTrace(ex); - Assert.fail(ex); + Assert.fail(ex.getMessage()); } } } diff --git a/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/InterCaseTestUtils.java b/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/InterCaseTestUtils.java index 1ecc6ff216..b4f6302d61 100644 --- a/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/InterCaseTestUtils.java +++ b/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/InterCaseTestUtils.java @@ -384,7 +384,7 @@ class InterCaseTestUtils { return tally == instanceCount; } catch (EamDbException ex) { Exceptions.printStackTrace(ex); - Assert.fail(ex); + Assert.fail(ex.getMessage()); return false; } } diff --git a/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IntraCaseTestUtils.java b/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IntraCaseTestUtils.java index 6311543b9d..f2a06d01f1 100644 --- a/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IntraCaseTestUtils.java +++ b/Core/test/qa-functional/src/org/sleuthkit/autopsy/commonfilessearch/IntraCaseTestUtils.java @@ -218,7 +218,7 @@ class IntraCaseTestUtils { return instanceIdToDataSource; } catch (EamDbException ex) { Exceptions.printStackTrace(ex); - Assert.fail(ex); + Assert.fail(ex.getMessage()); return instanceIdToDataSource; } }