Blogs by topic Java Patterns and user srikanth
In the previous installment of Effective Architecture, I covered TDD with Model-View-Presenter. However the code I presented had synchronous server calls. In JavaFX (like Swing), the UI code runs in the Event Dispatch Thread (EDT). It is unwise to block the EDT. Hence it is encouraged to execute all server calls on a separate thread.
Swing provides SwingWorker to execute tasks off the...
How to do Test Driven Development (TDD) with JavaFX using Model-View-Presenter pattern? In this installment of Effective JavaFX Architecture, I address this question with all the details and working code samples.