modules/graphics/src/test/java/javafx/css/InsetsTypeTest.java

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

@@ -21,24 +21,23 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-package com.sun.javafx.css;
+package javafx.css;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.fail;
 
 import java.io.IOException;
-import javafx.css.ParsedValue;
 import javafx.geometry.Insets;
 import javafx.scene.text.Font;
 
 import org.junit.Before;
 import org.junit.Test;
 
-import com.sun.javafx.css.parser.CSSParser;
+import javafx.css.CssParser;
 
 
 public class InsetsTypeTest {
 
     String[] css;

@@ -105,11 +104,11 @@
     public void testConvert() {
 
         for (int i=0; i<css.length; i++) {
 
             Stylesheet stylesheet =
-                CSSParser.getInstance().parse("* { -fx-border-insets: " + css[i] + "; }");
+                new CssParser().parse("* { -fx-border-insets: " + css[i] + "; }");
 
             ParsedValue value =
                     TypeTest.getValueFor(stylesheet, "-fx-border-insets");
 
             Insets[] insets = (Insets[]) value.convert(Font.getDefault());