4.5.2. Design for testability in JavaFX

4.5.2.1. Naming components

Although components can be located in the AUT even when they are not named by the developers, naming components is nevertheless a good idea. You can improve the testability of your application by using the following method in your JavaFX code for the current component class: setId();.



Copyright BREDEX GmbH 2015. Made available under the Eclipse Public License v1.0.