payworks/labs/tcp-mocker/model

Library for mocking any TCP based protocol

License

License

GroupId

GroupId

io.payworks.labs.tcpmocker
ArtifactId

ArtifactId

tcp-mocker-model
Last Version

Last Version

1.0.144.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

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

Download tcp-mocker-model

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-data-jpa jar
com.h2database : h2 jar
com.google.guava : guava jar 27.1-jre

test (8)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.1.5.RELEASE
io.payworks.labs.tcpmocker : tcp-mocker-interface jar 1.0.144.RELEASE
org.apache.commons : commons-lang3 jar 3.9
org.springframework.boot : spring-boot-starter-log4j2 jar
org.testng : testng jar 6.14.3
org.hamcrest : hamcrest-core jar 2.1
com.spotify : hamcrest-optional jar 1.1.4
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.144.RELEASE
1.0.91.RELEASE
1.0.86.RELEASE
1.0.71.RELEASE