ISO8583 메시지 기반 TCP 통신 테스트 도구입니다.
- Java 17
- Docker
./gradlew clean bootRun./gradlew clean bootJar
docker build -t tcp-test-app .docker run -d \
--name tcp-test-app \
-p 8080:8080 \
-p 8583:8583 \
tcp-test-app# 서버 상태 확인
curl http://localhost:8080/api/tcp-test/server/status
# 서버 시작/중지
curl -X POST http://localhost:8080/api/tcp-test/server/start
curl -X POST http://localhost:8080/api/tcp-test/server/stopcurl -X POST http://localhost:8080/api/tcp-test/client/payment \
-H "Content-Type: application/json" \
-d '{
"pan": "4111111111111111",
"amount": 10000,
"terminalId": "TEST001"
}'curl -X POST http://localhost:8080/api/tcp-test/client/balance \
-H "Content-Type: application/json" \
-d '{
"pan": "4111111111111111",
"terminalId": "TEST001"
}'curl -X POST http://localhost:8080/api/tcp-test/client/reversal \
-H "Content-Type: application/json" \
-d '{
"pan": "4111111111111111",
"amount": 10000,
"originalStan": "000001",
"originalRrn": "123456789012"
}'curl -X POST http://localhost:8080/api/tcp-test/client/network-testTCP_TEST_SERVER_PORT: TCP 서버 포트 (기본: 8583)TCP_TEST_CLIENT_TARGET_HOST: 클라이언트 대상 호스트 (기본: localhost)TCP_TEST_CLIENT_TARGET_PORT: 클라이언트 대상 포트 (기본: 8583)
# Health Check
curl http://localhost:8080/actuator/health실행 후:
- HTTP 서버: http://localhost:8080
- TCP 서버: localhost:8583