@Test public void testTextSymbolizerEditGUIPolygon() throws Throwable { if (isInteractive()) return; TextRuleList tRl = atlasStyler.getRlf().createTextRulesList(true); TextSymbolizerEditGUI tsGui = new TextSymbolizerEditGUI(tRl, atlasStyler, null); TestingUtil.testGui(tsGui); }
@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()); }
@Test public void testTextSymbolizerEditGUILine() throws Throwable { if (!TestingUtil.isInteractive()) return; STYLED_FS = TestDatasetsVector.lineBrokenQuix.getStyledFS(); atlasStyler = new AtlasStylerVector(STYLED_FS); TextRuleList tRl = atlasStyler.getRlf().createTextRulesList(true); TextSymbolizerEditGUI tsGui = new TextSymbolizerEditGUI(tRl, atlasStyler, null); TestingUtil.testGui(tsGui, 1); }