Misc cleanup
This commit is contained in:
parent
9b5fa56215
commit
6ed2ecd2e6
13 changed files with 70 additions and 565 deletions
|
|
@ -108,7 +108,7 @@ class SecureMemoryTest {
|
|||
|
||||
buffer.zero();
|
||||
|
||||
assertDoesNotThrow(() -> buffer.zero(), "Zeroing should not throw");
|
||||
assertDoesNotThrow(buffer::zero, "Zeroing should not throw");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -129,8 +129,8 @@ class SecureMemoryTest {
|
|||
byte[] data = new byte[]{1, 2, 3};
|
||||
SecureMemory.SecureBuffer buffer = SecureMemory.secureByteArray(data);
|
||||
|
||||
assertDoesNotThrow(() -> buffer.close(), "First close should not throw");
|
||||
assertDoesNotThrow(() -> buffer.close(), "Second close should not throw");
|
||||
assertDoesNotThrow(buffer::close, "First close should not throw");
|
||||
assertDoesNotThrow(buffer::close, "Second close should not throw");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue