< prev index next >

modules/javafx.graphics/src/test/java/test/com/sun/javafx/font/PrismFontFactoryTest.java

Print this page




  47     public PrismFontFactoryTest() {
  48     }
  49 
  50     @BeforeClass
  51     public static void setUpClass() throws Exception {
  52     }
  53 
  54     @AfterClass
  55     public static void tearDownClass() throws Exception {
  56     }
  57 
  58     @Before
  59     public void setUp() {
  60     }
  61 
  62     @After
  63     public void tearDown() {
  64     }
  65 
  66     /**
  67      * Test of getFontFactory method, of class T2KFontFactory.
  68      */
  69     @Test
  70     public void testGetFontFactory() {
  71         PrismFontFactory expResult = null;
  72         PrismFontFactory result = PrismFontFactory.getFontFactory();
  73         assertNotNull("Should never turn null", result);
  74         expResult = PrismFontFactory.getFontFactory();
  75         assertEquals("Creates different instance of FontFactory", expResult, result);
  76     }
  77 
  78 }


  47     public PrismFontFactoryTest() {
  48     }
  49 
  50     @BeforeClass
  51     public static void setUpClass() throws Exception {
  52     }
  53 
  54     @AfterClass
  55     public static void tearDownClass() throws Exception {
  56     }
  57 
  58     @Before
  59     public void setUp() {
  60     }
  61 
  62     @After
  63     public void tearDown() {
  64     }
  65 
  66     /**
  67      * Test of getFontFactory method.
  68      */
  69     @Test
  70     public void testGetFontFactory() {
  71         PrismFontFactory expResult = null;
  72         PrismFontFactory result = PrismFontFactory.getFontFactory();
  73         assertNotNull("Should never turn null", result);
  74         expResult = PrismFontFactory.getFontFactory();
  75         assertEquals("Creates different instance of FontFactory", expResult, result);
  76     }
  77 
  78 }
< prev index next >