void () { final String superclass = getTestName(false); myFixture.copyFileToProject(superclass + ".java"); myFixture.addClass("public class SubclassingController extends " + superclass + " {}"); myFixture.addFileToProject("sample.fxml", """ <?import javafx.scene.layout.VBox?> <?import javafx.scene.control.Button?> <VBox xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8" fx:controller="SubclassingController"> <Button fx:id="inheritedButton" onAction="#onAction"/> </VBox>"""); myFixture.testHighlighting(true, true, true, superclass + ".java"); }