Thank you, Dan. Thank you for the explanation about the "main" method
Having pondered about your reply let me re-phrase my original question: what is the best way to execute "finalize" method of FitnessEvaluationWorker (after junit tests complete )?
I believe my issue is directly related to ThreadPoolExecutor object internal to FitnessEvaluationWorker not being shutdown and leaving behind its ThreadPool, each Thread in the ThreadPool in WAITING state,
Please correct me if my understanding is wrong:
- FitnessEvaluatorWorker object is created automatically by Watchmaker, specifically by EvolutionEngine (per JavaDoc)
If so, how can I get a reference to this object? Or may be there is a standard way to trigger execution of this "finalize" method? Or may be our implementation of TerminationCondition is faulty and
prevents EveolutionEngine from shutting down ThreadPoolExecutor?
Again, thank you for your response. Hopefully, my question makes sense.
Thank you.
VS