modules/graphics/src/test/java/com/sun/javafx/css/SizeTypeTest.java

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


  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.javafx.css;
  27 
  28 import static org.junit.Assert.assertEquals;
  29 
  30 import javafx.css.ParsedValue;


  31 import javafx.css.StyleConverter;
  32 import javafx.scene.text.Font;
  33 
  34 import org.junit.Test;
  35 
  36 
  37 
  38 public class SizeTypeTest {
  39 
  40     public SizeTypeTest() {
  41     }
  42 
  43     /**
  44      * Test of convert method, of class SizeType.
  45      */
  46     @Test
  47     public void testConvert() {
  48         //System.out.println("convert");
  49         Size size = new Size(2.0f, SizeUnits.EM);
  50         ParsedValue<Size, Size> value = new ParsedValueImpl<Size,Size>(size,null);


  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.javafx.css;
  27 
  28 import static org.junit.Assert.assertEquals;
  29 
  30 import javafx.css.ParsedValue;
  31 import javafx.css.Size;
  32 import javafx.css.SizeUnits;
  33 import javafx.css.StyleConverter;
  34 import javafx.scene.text.Font;
  35 
  36 import org.junit.Test;
  37 
  38 
  39 
  40 public class SizeTypeTest {
  41 
  42     public SizeTypeTest() {
  43     }
  44 
  45     /**
  46      * Test of convert method, of class SizeType.
  47      */
  48     @Test
  49     public void testConvert() {
  50         //System.out.println("convert");
  51         Size size = new Size(2.0f, SizeUnits.EM);
  52         ParsedValue<Size, Size> value = new ParsedValueImpl<Size,Size>(size,null);