Skip to content

Commit b2256b7

Browse files
remove comments
1 parent 807c53d commit b2256b7

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/test/java/com/uid2/admin/store/writer/EncryptedSaltStoreWriterTest.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,15 @@ private RotatingSaltProvider.SaltSnapshot makeSnapshot(Instant effective, Instan
9696

9797
private void verifyFile(String filelocation, RotatingSaltProvider.SaltSnapshot snapshot) throws IOException {
9898
InputStream encoded = Files.newInputStream(Paths.get(filelocation));
99-
String content = new String(encoded.readAllBytes(), StandardCharsets.UTF_8);
100-
System.out.println(content);
101-
// String contents = decryptInputStream(encoded, rotatingCloudEncryptionKeyProvider);
102-
// SaltEntry[] entries = snapshot.getAllRotatingSalts();
103-
// Integer idx = 0;
104-
// for (String line : contents.split("\n")) {
105-
// String[] entrySplit = line.split(",");
106-
// assertEquals(entries[idx].getId(), Long.parseLong(entrySplit[0]));
107-
// assertEquals(entries[idx].getSalt(), entrySplit[2]);
108-
// idx++;
109-
// }
99+
String contents = decryptInputStream(encoded, rotatingCloudEncryptionKeyProvider);
100+
SaltEntry[] entries = snapshot.getAllRotatingSalts();
101+
Integer idx = 0;
102+
for (String line : contents.split("\n")) {
103+
String[] entrySplit = line.split(",");
104+
assertEquals(entries[idx].getId(), Long.parseLong(entrySplit[0]));
105+
assertEquals(entries[idx].getSalt(), entrySplit[2]);
106+
idx++;
107+
}
110108
}
111109

112110
@Test

0 commit comments

Comments
 (0)