payworks/labs/tcp-mocker/recordings

Library for mocking any TCP based protocol

License

License

GroupId

GroupId

io.payworks.labs.tcpmocker
ArtifactId

ArtifactId

tcp-mocker-recordings
Last Version

Last Version

1.0.250.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

payworks/labs/tcp-mocker/recordings
Library for mocking any TCP based protocol

Download tcp-mocker-recordings

How to add to project

<!-- https://jarcasting.com/artifacts/io.payworks.labs.tcpmocker/tcp-mocker-recordings/ -->
<dependency>
    <groupId>io.payworks.labs.tcpmocker</groupId>
    <artifactId>tcp-mocker-recordings</artifactId>
    <version>1.0.250.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/io.payworks.labs.tcpmocker/tcp-mocker-recordings/
implementation 'io.payworks.labs.tcpmocker:tcp-mocker-recordings:1.0.250.RELEASE'
// https://jarcasting.com/artifacts/io.payworks.labs.tcpmocker/tcp-mocker-recordings/
implementation ("io.payworks.labs.tcpmocker:tcp-mocker-recordings:1.0.250.RELEASE")
'io.payworks.labs.tcpmocker:tcp-mocker-recordings:jar:1.0.250.RELEASE'
<dependency org="io.payworks.labs.tcpmocker" name="tcp-mocker-recordings" rev="1.0.250.RELEASE">
  <artifact name="tcp-mocker-recordings" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.payworks.labs.tcpmocker', module='tcp-mocker-recordings', version='1.0.250.RELEASE')
)
libraryDependencies += "io.payworks.labs.tcpmocker" % "tcp-mocker-recordings" % "1.0.250.RELEASE"
[io.payworks.labs.tcpmocker/tcp-mocker-recordings "1.0.250.RELEASE"]

Dependencies

compile (4)

Group / Artifact Type Version
io.payworks.labs.tcpmocker : tcp-mocker-core jar 1.0.250.RELEASE
org.springframework.boot : spring-boot-starter-data-jpa jar
com.h2database : h2 jar
com.google.guava : guava jar 30.1-jre

test (8)

Group / Artifact Type Version
io.payworks.labs.tcpmocker : tcp-mocker-test jar 1.0.250.RELEASE
org.apache.commons : commons-lang3 jar 3.12.0
org.springframework.boot : spring-boot-starter-test jar 2.4.3
org.springframework.boot : spring-boot-starter-log4j2 jar
org.testng : testng jar 7.4.0
org.hamcrest : hamcrest jar 2.2
com.spotify : hamcrest-optional jar 1.2.0
org.mockito : mockito-core jar

Project Modules

There are no modules declared in this project.

Travis Build Status Docker Image Version Docker Image Size

tcp-mocker

Build

Supported Java Versions:
Using Maven

./mvnw clean package

Using Docker

docker-compose up

Usage

Docker:
docker run -it --rm \
  -p 10001:10001 \
  -v $(pwd)/tcp-mappings:/var/lib/tcp-mocker/tcp-mappings \
  tcpmocker/tcp-mocker-app:LOCAL-SNAPSHOT

Tips & Tricks

TCP Mocker Ping-Pong Playground
$ docker run -it --rm \
    -p 10001:10001 \
    -v $(pwd)/tcp-mocker-app-test/tcp-mocker-app/tcp-mappings:/var/lib/tcp-mocker/tcp-mappings \
    tcpmocker/tcp-mocker-app:LOCAL-SNAPSHOT

$ echo -ne 'ping' | xxd -p
70696e67

$ echo -ne '\x70\x69\x6e\x67' | xxd -p
70696e67

$ echo -ne '\x70\x69\x6e\x67' | ncat localhost 10001
pong

$ echo -ne '\x70\x69\x6e\x67' | ncat localhost 10001 | xxd -p
706f6e67
Upgrade Maven Wrapper Version
mvn -N io.takari:maven:wrapper -Dmaven=3.6.3
io.payworks.labs.tcpmocker

Payworks

Versions

Version
1.0.250.RELEASE
1.0.249.RELEASE
1.0.248.RELEASE
1.0.218.RELEASE
1.0.215.RELEASE
1.0.210.RELEASE
1.0.207.RELEASE
1.0.202.RELEASE
1.0.167.RELEASE