@edvin I got the fx:include unit test working by falling back on an -at-FXML annotation. In the current FXML, there is a View with two child Views. All 3 views base their roots on an FXML file reference. This is the existing class of one of the child Views which is throwing the LoadException
class ComposedFormSearchController : View() {
override val root : HBox by fxml("/torandofx/test/ComposedFormSearch.fxml")
val tfSearch : TextField by fxid()
fun search() {
println("search=" + tfSearch.text)
}
}
This is working for me
class ComposedFormSearchController : Controller() {
@FXML var tfSearch : TextField? = null
fun search() {
println("search=" + tfSearch?.text)
}
}