Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Mar 6, 2024
1 parent b96d0ea commit 93134ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public void filedrop() throws Exception {
EncryptionUtils.encryptFileDropFiles(decryptedFolderMetadata1, encryptedFolderMetadata1, publicKey);

// serialize
String encryptedJson = serializeJSON(encryptedFolderMetadata1);
String encryptedJson = serializeJSON(encryptedFolderMetadata1, true);

// de-serialize
EncryptedFolderMetadataFileV1 encryptedFolderMetadata2 = deserializeJSON(encryptedJson,
Expand All @@ -626,8 +626,8 @@ public void filedrop() throws Exception {
folderID);

// compare
assertFalse(compareJsonStrings(serializeJSON(decryptedFolderMetadata1),
serializeJSON(decryptedFolderMetadata2)));
assertFalse(compareJsonStrings(serializeJSON(decryptedFolderMetadata1, true),
serializeJSON(decryptedFolderMetadata2, true)));

assertEquals(decryptedFolderMetadata1.getFiles().size() + decryptedFolderMetadata1.getFiledrop().size(),
decryptedFolderMetadata2.getFiles().size());
Expand Down

0 comments on commit 93134ce

Please sign in to comment.