Hello! I have a client server application and for testing purposes I need to start the client in a test method by calling
Client.main();
That creates some new thread. Now I need to wait until that thread is completed before performing assertions in my test. How do I know when this happens? Alternatively, how do I know, which thread was started by the call (the client can create other threads too).