mpmartins / tcpmock

A simple tool to create a mock version of a TCP server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

contributions welcome Build Status codecov HitCount

tcpmock

A simple tool that allows you to record communication between your application and any TCP server. Iteractions can be saved to a file and played back, creating a mock version of that TCP server.

User Manual

Use com.inovarie.tcpmock.Main class to execute following functions:

RECORDING

NAME
	record - Starts server and record communication.

SYNOPSYS
	record [--server-port] int  [--client-address] string  [--client-port] int  [--file-name] string

OPTIONS
	--server-port  int
		[Mandatory]

	--client-address  string
		[Mandatory]

	--client-port  int
		[Mandatory]

	--file-name  string	
		[Mandatory]
		[must not be empty]

PLAYBACK

NAME
	playback - Starts server and replay specified communication file.

SYNOPSYS
	playback [--server-port] int  [--file-name] string

OPTIONS
	--server-port  int
		[Mandatory]

	--file-name  string
		[Mandatory]
		[must not be empty]
		[File must be in classpath]

About

A simple tool to create a mock version of a TCP server.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%