com.sun.javatest.services.ThreadExecutor contains several issues:
1. Method stopService(Message) starts with checking stopMsg.getType() != MessageType.START,
but should check: stopMsg.getType() != MessageType.STOP
2. It's impossible to restart service, because startService(Message) trying to starts existing thread instead of new thread creation.
3. method isAlive always returns false.
1. Method stopService(Message) starts with checking stopMsg.getType() != MessageType.START,
but should check: stopMsg.getType() != MessageType.STOP
2. It's impossible to restart service, because startService(Message) trying to starts existing thread instead of new thread creation.
3. method isAlive always returns false.