test/tools/launcher/FXLauncherTest.java

Print this page
rev 9771 : 8035782 : sun/launcher/LauncherHelper loaded unnecessarily

@@ -371,10 +371,15 @@
             if (!tr.notContains("jfxrt.jar")) {
                 System.out.println("testing for extraneous jfxrt jar");
                 System.out.println(tr);
                 throw new Exception("jfxrt.jar is being loaded, it should not be!");
             }
+            if (!tr.notContains("sun.launcher.LauncherHelper$FXHelper")) {
+                System.out.println("testing for extraneous 'sun.launcher.LauncherHelper$FXHelper'");
+                System.out.println(tr);
+                throw new Exception("FXHelper is being loaded, it should not be!");
+            }
             for (String p : APP_PARMS) {
                 if (!tr.contains(p)) {
                     System.err.println("ERROR: Did not find "
                             + p + " in output!");
                 }