bluejoe created FLINK-7827: ------------------------------ Summary: creating and starting a NetCat in test cases programmatically Key: FLINK-7827 URL: https://issues.apache.org/jira/browse/FLINK-7827 Project: Flink Issue Type: Improvement Components: DataStream API Reporter: bluejoe
hi, all I have written a MockNetCat class, which help developers start a netcat programmatically, instead of manually launching {{nc -lk 9999}} command for test also I completed a MockNetCatTest class, a JUnit 4 test case which test MockNetCat use of MockNetCat is very simple, like: {{var nc: MockNetCat = MockNetCat.start(9999);}} this starts a NetCat server, and data can be generated using following code: {{nc.writeData("hello\r\nworld\r\nbye\r\nworld\r\n");}} -- This message was sent by Atlassian JIRA (v6.4.14#64029)