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

Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:

@@ -21,17 +21,18 @@
  * 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 javafx.css;
+package test.javafx.css;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
 import com.sun.javafx.css.ParsedValueImpl;
+import javafx.css.StylesheetShim;
 import javafx.css.StyleConverter.StringStore;
 import javafx.css.converter.SizeConverter;
 
 import javafx.scene.text.Font;
 

@@ -40,10 +41,14 @@
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.DataInputStream;
 import java.io.DataOutputStream;
 import java.io.IOException;
+import javafx.css.ParsedValue;
+import javafx.css.Size;
+import javafx.css.SizeUnits;
+import javafx.css.StylesheetShim;
 
 public class ParsedValueTest {
 
     public ParsedValueTest() {
     }

@@ -488,11 +493,11 @@
             parsedValue.writeBinary(dos, stringStore);
             dos.close();
             String[] strings = stringStore.strings.toArray(new String[]{});
             ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
             DataInputStream dis = new DataInputStream(bais);
-            ParsedValue<?,?> pv = ParsedValueImpl.readBinary(Stylesheet.BINARY_CSS_VERSION, dis, strings);
+            ParsedValue<?,?> pv = ParsedValueImpl.readBinary(StylesheetShim.BINARY_CSS_VERSION, dis, strings);
             org.junit.Assert.assertEquals(parsedValue, pv);
         } catch (IOException ioe) {
             System.err.println(ioe);
             org.junit.Assert.fail(parsedValue.toString());
         }