payworks/labs/tcp-mocker/app-test

Library for mocking any TCP based protocol

License

License

GroupId

GroupId

io.payworks.labs.tcpmocker
ArtifactId

ArtifactId

tcp-mocker-app-test
Last Version

Last Version

1.0.250.RELEASE
Release Date

Release Date

Type

Type

pom
Description

Description

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

Download tcp-mocker-app-test

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
com.google.guava : guava jar 30.1-jre

test (8)

Group / Artifact Type Version
io.payworks.labs.tcpmocker : tcp-mocker-app test-jar 1.0.250.RELEASE
io.payworks.labs.tcpmocker : tcp-mocker-test jar 1.0.250.RELEASE
org.testcontainers : testcontainers jar 1.15.2
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