I was able to figure out a way to get a list of all Socket
and ServerSocket
instances, so it will be possible to write a test that the launcher closes all network connections.
2014-05-31
Let's Code Jumi #313: Releasing Resources Test (Part 4)
Labels:
jumi
2014-05-29
2014-05-26
2014-05-21
Let's Code Jumi #310: Stopping Threads (Part 1)
The easiest resource to release is JumiLauncher
's actor threads, which also drives us to promote some bootstrap test code into production code.
Labels:
jumi
2014-05-09
2014-05-05
2014-05-01
Let's Code Jumi #307: Releasing Resources Test (Part 1)
We could test individually that the launcher releases each resource (i.e. threads and sockets) when it is closed, but it would be easy to forget some resource. So let's write a generic test that all resources are released.
Labels:
jumi
Subscribe to:
Posts (Atom)