@Test public void testGetFontComboBox2() throws IOException { List<Font> fonts = new ArrayList<Font>(); // Font f = new JLabel().getFont().deriveFont(3); atlasStyler.setFonts(fonts); TextSymbolizerEditGUI textSymbolizerEditGUI = new TextSymbolizerEditGUI( tr, atlasStyler, TestDatasetsVector.countryShp.getFeatureCollection()); JComboBox jComboBoxFont = textSymbolizerEditGUI.getJComboBoxFont(); assertEquals("default number of fonts is 5", 5, jComboBoxFont.getItemCount()); }