[GitHub] spark pull request #19258: add MockNetCat

2017-09-17 Thread bluejoe2008
Github user bluejoe2008 closed the pull request at:

https://github.com/apache/spark/pull/19258


---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark pull request #19258: add MockNetCat

2017-09-16 Thread bluejoe2008
GitHub user bluejoe2008 opened a pull request:

https://github.com/apache/spark/pull/19258

add MockNetCat

## What changes were proposed in this pull request?
I add a MockNetCat class, which avoid manually launch 'nc -lk ' command 
for test
also I put a MockNetCatTest class, a JUnit 4 test case which test MockNetCat

## How was this patch tested?

run MockNetCatTest to test MockNetCat
this class uses an structured streaming example which read socket data from 
localhost:

Please review http://spark.apache.org/contributing.html before opening a 
pull request.


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/bluejoe2008/spark master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/spark/pull/19258.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #19258


commit f61636da8998c52ddb980584ed8a9e7aee01902c
Author: bluejoe2...@gmail.com 
Date:   2017-09-17T05:14:37Z

add MockNetCat




---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org