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