2016-09-06 12:32:51 -06:00
|
|
|
// network/tests/ChatterTest.java
|
|
|
|
// (c)2016 MindView LLC: see Copyright.txt
|
|
|
|
// We make no guarantees that this code is fit for any purpose.
|
2016-09-23 13:23:35 -06:00
|
|
|
// Visit http://OnJava8.com for more book information.
|
2016-09-06 12:32:51 -06:00
|
|
|
package network;
|
|
|
|
import java.net.*;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
|
|
|
|
public class ChatterTest {
|
|
|
|
@BeforeAll
|
|
|
|
static void startMsg() {
|
|
|
|
System.out.println(">>> ChatterTest");
|
|
|
|
}
|
|
|
|
@Test
|
|
|
|
void chatterTest() throws Exception {
|
2016-12-02 17:05:15 -08:00
|
|
|
// <* These must be handed to an executor: *>
|
2016-09-06 12:32:51 -06:00
|
|
|
new ChatterServer();
|
|
|
|
new ChatterClient(InetAddress.getLocalHost());
|
|
|
|
// No exceptions means success
|
|
|
|
}
|
|
|
|
}
|