I choose an uncomfortable but visible and easy to learn test. With this guide you can learn how to use this module and you can confirm that what you need is really working well.
In the samples/tests
directory, you can see the TestWebServer.java
verticle. You can run this on your IDE or on command line.
Just run the main method in the TestWebServer
Use, vertx run /samples/tests/TestWebServer.java
on this project's root directory. In my case, I run the test server like this:
/workspace/mod-socket-io > vertx run samples/tests/TestWebServer.java
Step 2. Go to http://localhost:8080
Open your favorite browser, and type `http://localhost:8080/'. Then, you can see an available tests list.
If you want to test the sending and receiving events
, then you should run samples/tests/SendingAndReceivingEvents.java
and samples/tests/SendingAndReceivingEvents.js
optionally.
Like the TestWebServer
, you can run the verticle on IDE or on command line lie this:
/workspace/mod-socket-io > vertx run samples/tests/SendingAndReceivingEvents.java
node samples/tests/SendingAndReceivingEvents.js
Click the link and enjoy the tests and guides.
ps: If you want to test another feature, you should run the another verticle or node.js application.
Thanks.