4.5.2. Design for testability in JavaFX
Prev | 4.5. Testing JavaFX AUTs | Next

### 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();.