Skip to content
Snippets Groups Projects
Unverified Commit d5f24b9c authored by Ann Priestman's avatar Ann Priestman Committed by GitHub
Browse files

Merge pull request #2591 from APriestman/updateMethodCallsInTests

Switch to Blackboard.getAttributeType() method
parents cd40f0c6 aa89aa8c
No related branches found
No related tags found
No related merge requests found
...@@ -912,11 +912,11 @@ public void osAccountInstanceTests() throws TskCoreException, OsAccountManager.N ...@@ -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. // 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); accountAttributes.add(attrib1);
String hint = "HINT"; 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); accountAttributes.add(attrib2);
// add attributes to account. // add attributes to account.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment