payworks/labs/tcp-mocker/support

Library for mocking any TCP based protocol

License

License

GroupId

GroupId

io.payworks.labs.tcpmocker
ArtifactId

ArtifactId

tcp-mocker-support
Last Version

Last Version

1.0.250.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

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

Download tcp-mocker-support

How to add to project

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

Dependencies

compile (9)

Group / Artifact Type Version
io.payworks.labs.tcpmocker : tcp-mocker-core jar 1.0.250.RELEASE
org.slf4j : slf4j-api jar
commons-io : commons-io jar 2.8.0
com.fasterxml.jackson.core : jackson-annotations jar
com.fasterxml.jackson.core : jackson-core jar
com.fasterxml.jackson.core : jackson-databind jar
com.fasterxml.jackson.dataformat : jackson-dataformat-yaml jar
org.codehaus.groovy : groovy-all Optional pom 3.0.7
com.google.guava : guava jar 30.1-jre

test (5)

Group / Artifact Type Version
org.slf4j : slf4j-simple 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
1.0.144.RELEASE
1.0.91.RELEASE
1.0.86.RELEASE
1.0.71.RELEASE