modules/fxml/src/test/java/javafx/fxml/RT_18218Test.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization

*** 23,33 **** * questions. */ package javafx.fxml; - import com.sun.javafx.fxml.LoadListener; import java.io.IOException; import java.util.Map; import org.junit.Test; import static org.junit.Assert.*; --- 23,32 ----
*** 36,46 **** @Test @SuppressWarnings({"unchecked", "deprecation"}) public void testStaticScriptLoad() throws IOException { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("rt_18218.fxml")); fxmlLoader.impl_setStaticLoad(true); ! fxmlLoader.impl_setLoadListener(new LoadListener() { private String unknownStaticPropertyElementName = null; @Override public void readImportProcessingInstruction(String target) { } --- 35,45 ---- @Test @SuppressWarnings({"unchecked", "deprecation"}) public void testStaticScriptLoad() throws IOException { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("rt_18218.fxml")); fxmlLoader.impl_setStaticLoad(true); ! fxmlLoader.setLoadListener(new LoadListener() { private String unknownStaticPropertyElementName = null; @Override public void readImportProcessingInstruction(String target) { }