From aa89aa8cbf100a8f12debd35dcdc5fdc35668c1f Mon Sep 17 00:00:00 2001 From: apriestman <apriestman@basistech.com> Date: Sun, 24 Oct 2021 19:35:53 -0400 Subject: [PATCH] Switch to Blackboard method --- bindings/java/test/org/sleuthkit/datamodel/OsAccountTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/java/test/org/sleuthkit/datamodel/OsAccountTest.java b/bindings/java/test/org/sleuthkit/datamodel/OsAccountTest.java index b5d0ca620..542ca4947 100644 --- a/bindings/java/test/org/sleuthkit/datamodel/OsAccountTest.java +++ b/bindings/java/test/org/sleuthkit/datamodel/OsAccountTest.java @@ -912,11 +912,11 @@ public void osAccountInstanceTests() throws TskCoreException, OsAccountManager.N // TBD: perhaps add some files to the case and then use one of the files as the source of attributes. - OsAccountAttribute attrib1 = osAccount1.new OsAccountAttribute(caseDB.getAttributeType(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_PASSWORD_RESET.getTypeID()), resetTime1, osAccount1, null, image); + OsAccountAttribute attrib1 = osAccount1.new OsAccountAttribute(caseDB.getBlackboard().getAttributeType(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME_PASSWORD_RESET.getTypeID()), resetTime1, osAccount1, null, image); accountAttributes.add(attrib1); String hint = "HINT"; - OsAccountAttribute attrib2 = osAccount1.new OsAccountAttribute(caseDB.getAttributeType(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PASSWORD_HINT.getTypeID()), hint, osAccount1, host2, image); + OsAccountAttribute attrib2 = osAccount1.new OsAccountAttribute(caseDB.getBlackboard().getAttributeType(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PASSWORD_HINT.getTypeID()), hint, osAccount1, host2, image); accountAttributes.add(attrib2); // add attributes to account. -- GitLab