system_out 제거
This commit is contained in:
+1
-1
Submodule elink-online-common updated: 51db6c88cf...8b72299689
+1
-1
Submodule elink-online-core updated: 75e3d3451c...8c886f92fb
+1
-1
Submodule elink-online-emsclient updated: 7cd000f692...728ca86c37
+1
-1
Submodule elink-online-transformer updated: dd68924d78...947d1f223c
@@ -178,7 +178,7 @@ public class MessageKeyTest {
|
||||
}
|
||||
|
||||
private static void testXml() {
|
||||
System.out.println("\n=== XML 테스트 ===");
|
||||
// System.out.println("\n=== XML 테스트 ===");
|
||||
|
||||
// 단순 경로 테스트
|
||||
String xml1 = "<root><status>SUCCESS</status></root>";
|
||||
@@ -227,7 +227,7 @@ public class MessageKeyTest {
|
||||
}
|
||||
|
||||
private static void testJson() {
|
||||
System.out.println("\n=== JSON 테스트 ===");
|
||||
// System.out.println("\n=== JSON 테스트 ===");
|
||||
|
||||
// 단순 경로 테스트
|
||||
String json1 = "{\"status\":\"success\"}";
|
||||
@@ -282,7 +282,7 @@ public class MessageKeyTest {
|
||||
}
|
||||
|
||||
private static void testReservedWords() {
|
||||
System.out.println("\n=== 예약어 테스트 ===");
|
||||
// System.out.println("\n=== 예약어 테스트 ===");
|
||||
|
||||
// 1. 기본 비교 테스트
|
||||
test("예약어 - eq",
|
||||
@@ -375,14 +375,6 @@ public class MessageKeyTest {
|
||||
|
||||
private static void test(String testName, String type, String message, String path, String expected) {
|
||||
TestResult result = isSuccessMessageTest(type, message, path, expected);
|
||||
System.out.println(String.format(
|
||||
"테스트: %s\n결과: %s\n메시지: %s\n경로: %s\n기대값: %s\n추출된 값: [%s]\n",
|
||||
testName,
|
||||
result.success ? "성공" : "실패",
|
||||
message,
|
||||
path,
|
||||
expected,
|
||||
result.extractedValue
|
||||
));
|
||||
// System.out.println(String.format( "테스트: %s\n결과: %s\n메시지: %s\n경로: %s\n기대값: %s\n추출된 값: [%s]\n",testName, result.success ? "성공" : "실패",message,path,expected,result.extractedValue ));
|
||||
}
|
||||
}
|
||||
@@ -327,21 +327,19 @@ public class KjbMGOAuth2Controller {
|
||||
Signature privateSignature = Signature.getInstance("SHA256withRSA");
|
||||
privateSignature.initSign(pair.getPrivate());
|
||||
privateSignature.update(message.getBytes(StandardCharsets.UTF_8));
|
||||
System.out.println(
|
||||
"private key=" + Base64.getEncoder().encodeToString(pair.getPrivate().getEncoded()));
|
||||
|
||||
// System.out.println("private key=" + Base64.getEncoder().encodeToString(pair.getPrivate().getEncoded()));
|
||||
byte[] signature = privateSignature.sign();
|
||||
//System.out.println("signature=" + new String(signature, StandardCharsets.UTF_8));
|
||||
System.out.println("signature=" + Base64.getEncoder().encodeToString(signature));
|
||||
// System.out.println("signature=" + Base64.getEncoder().encodeToString(signature));
|
||||
|
||||
// Let's check the signature
|
||||
Signature publicSignature = Signature.getInstance("SHA256withRSA");
|
||||
publicSignature.initVerify(pair.getPublic());
|
||||
publicSignature.update(message.getBytes(StandardCharsets.UTF_8));
|
||||
boolean isCorrect = publicSignature.verify(signature);
|
||||
System.out.println("public key=" + Base64.getEncoder().encodeToString(pair.getPublic().getEncoded()));
|
||||
// System.out.println("public key=" + Base64.getEncoder().encodeToString(pair.getPublic().getEncoded()));
|
||||
|
||||
System.out.println("Signature correct: " + isCorrect);
|
||||
// System.out.println("Signature correct: " + isCorrect);
|
||||
|
||||
// The public key can be used to encrypt a message, the private key can be used
|
||||
// to decrypt it.
|
||||
@@ -357,6 +355,6 @@ public class KjbMGOAuth2Controller {
|
||||
|
||||
String decipheredMessage = new String(decriptCipher.doFinal(cipherText), StandardCharsets.UTF_8);
|
||||
|
||||
System.out.println(decipheredMessage);
|
||||
// System.out.println(decipheredMessage);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -200,6 +200,6 @@ public class SnapHmacSha512VerifyFilter implements HttpAdapterFilter {
|
||||
"o3Hre3voTrHbLueDrHC0LYM5effHQZILI8t23htbD12TKD5QJUMONqFqv4494iQS46bzHS0xW1fBC5LHo3D0SzhZvQcPUaJZw0iQ79NnzYFUCTrEsoFJRL300dp3Ql4y")
|
||||
.hmacHex(str);
|
||||
|
||||
System.out.println(hmac);
|
||||
// System.out.println(hmac);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,13 +17,13 @@ public class GzipBase64Util {
|
||||
try {
|
||||
String base64EncodedData = compress(originalString);
|
||||
|
||||
System.out.println("Original String: " + originalString);
|
||||
System.out.println("Base64 Encoded String: " + base64EncodedData);
|
||||
// System.out.println("Original String: " + originalString);
|
||||
// System.out.println("Base64 Encoded String: " + base64EncodedData);
|
||||
|
||||
// Base64 디코딩 후 gzip 압축 해제
|
||||
String decodedString = decompress(base64EncodedData);
|
||||
|
||||
System.out.println("Decoded String: " + decodedString);
|
||||
// System.out.println("Decoded String: " + decodedString);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class VirtualAccountBatchUtil {
|
||||
public String unzipAndSave(String aesKey, String jsonString, String rootFilePath, String fileNamePattern) throws Exception {
|
||||
// gzippedValue 추출
|
||||
String gzippedValue = getGzipValue(jsonString, "encData");
|
||||
System.out.println("gzippedValue[" + gzippedValue + "]");
|
||||
// System.out.println("gzippedValue[" + gzippedValue + "]");
|
||||
|
||||
// 압축 해제
|
||||
String unziped = GzipBase64Util.decompress(gzippedValue);
|
||||
|
||||
@@ -64,8 +64,8 @@ public class VirtualAccountTransform {
|
||||
list.add(" $.encAccount ");
|
||||
list.add(" $.accounts$.encAccount ");
|
||||
String cubeOneJson = toCubeOne(aesKey, list, json);
|
||||
System.out.println(cubeOneJson);
|
||||
System.out.println(toAES(aesKey, list, cubeOneJson));
|
||||
// System.out.println(cubeOneJson);
|
||||
// System.out.println(toAES(aesKey, list, cubeOneJson));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -76,6 +76,6 @@ public final class GUIDGeneratorKAKAOCARD {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String guid = getGUID("FEP");
|
||||
System.out.println("[" + guid.length() + "]" + guid);
|
||||
// System.out.println("[" + guid.length() + "]" + guid);
|
||||
}
|
||||
}
|
||||
@@ -93,6 +93,6 @@ public final class GUIDGeneratorKJB {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String guid = getGUID("051");
|
||||
System.out.println("[" + guid.length() + "]" + guid);
|
||||
// System.out.println("[" + guid.length() + "]" + guid);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user