< prev index next >

modules/graphics/src/test/java/test/javafx/scene/text/FontTest.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 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

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package test.javafx.scene.text;
 
+import com.sun.javafx.text.FontHelper;
 import static test.com.sun.javafx.test.TestHelper.assertImmutableList;
 import static junit.framework.Assert.assertEquals;
 import static junit.framework.Assert.assertNotNull;
 import static junit.framework.Assert.assertNotSame;
 import static junit.framework.Assert.assertTrue;

@@ -138,11 +139,11 @@
         assertEquals(f3, f4);
     }
 
     @Test
     public void testSetNative() {
-        new Font(12).impl_setNativeFont(new Object(), "", "", "");
+        FontHelper.setNativeFont(new Font(12), new Object(), "", "", "");
         // no assumptions
     }
 
 /*
  * Sad to say, all these tests are not useful since 'ant test' uses
< prev index next >