< prev index next >

tests/system/src/test/java/test/com/sun/javafx/application/HostServicesTest.java

Print this page
rev 10669 : 8187149: Remove HostServices::getWebContext
Reviewed-by:

*** 1,7 **** /* ! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 23,33 **** * questions. */ package test.com.sun.javafx.application; ! import com.sun.javafx.PlatformUtil; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import javafx.application.Application; import javafx.application.HostServices; import javafx.application.Platform; --- 23,33 ---- * questions. */ package test.com.sun.javafx.application; ! import java.lang.reflect.Method; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import javafx.application.Application; import javafx.application.HostServices; import javafx.application.Platform;
*** 111,118 **** @Test public void testWebContext() { final HostServices hs = myApp.getHostServices(); assertNotNull(hs); ! assertNull(hs.getWebContext()); } } --- 111,125 ---- @Test public void testWebContext() { final HostServices hs = myApp.getHostServices(); assertNotNull(hs); ! ! boolean nsme = false; ! try { ! Method m_getWebContext = HostServices.class.getMethod("getWebContext"); ! } catch (NoSuchMethodException ex) { ! nsme = true; ! } ! assertTrue("Did not get the expected NoSuchMethodException", nsme); } }
< prev index next >