safedb 디버깅
This commit is contained in:
@@ -74,6 +74,7 @@ public class SafeDbWrapperTest {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("CallToPrintStackTrace")
|
||||
@Test
|
||||
public void safeDBTest() {
|
||||
// safedb 프러퍼티가 활성화 일때만 동작
|
||||
@@ -100,14 +101,22 @@ public class SafeDbWrapperTest {
|
||||
String value = "test";
|
||||
log.info("Original : {}", value);
|
||||
|
||||
try {
|
||||
String encryptValue = wrapper.encryptNotRnnoString(value);
|
||||
log.info("Encrypted : {}", encryptValue);
|
||||
|
||||
String decryptedValue = wrapper.decryptNotRnno(encryptValue);
|
||||
log.info("Decrypted : {}", decryptedValue);
|
||||
|
||||
|
||||
assertEquals(value, decryptedValue);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
fail();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
assertTrue(true);
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user