StyleEditionFrame extends JDialog implements ActionListener,
    MouseListener, ChangeListener, ItemListener { public Layer getLayer() { return this.layer; } StyleEditionFrame(LayerLegendPanel layerLegendPanel); Layer getLayer(); StyledLayerDescriptor getInitialSLD(); void copyInitialSLD(StyledLayerDescriptor sldToCopy); void initTextStylePanel(); JPanel createToponymPanel(); void update(); JPanel createPlacementPanel(); JPanel createFontPanel(); void initPolygon(); void initLine(); LayerLegendPanel getLayerLegendPanel(); LayerViewPanel getLayerViewPanel(); static LayerStylesPanel getStylePanel(); static void setStylePanel(LayerStylesPanel stylePanel); JLabel getStrokeFinalColorLabel(); void setStrokeFinalColorLabel(JLabel strokeFinalColorLabel); void initPoint(); JPanel createVisuPanel(); JButton createButtonValid(); JButton createButtonApply(); JButton createButtonCancel(); @Override void actionPerformed(ActionEvent e); @Override void mouseClicked(MouseEvent arg0); @Override void mouseEntered(MouseEvent arg0); @Override void mouseExited(MouseEvent arg0); @Override void mousePressed(MouseEvent arg0); @Override void mouseReleased(MouseEvent arg0); @Override void stateChanged(ChangeEvent arg0); void updateLayer(); void reset(); void getDialogElements(); @Override void itemStateChanged(ItemEvent e); JScrollPane getStrokeExpressiveScrollPane(); JTabbedPane getTabPane(); JScrollPane getFillExpressiveScrollPane();  }
@Test public void testBasicStyles() { LOGGER.info("Try to load BasicStyles.xml "); StyledLayerDescriptor sld = null; try { sld = StyledLayerDescriptor.unmarshall(StyledLayerDescriptor.class .getClassLoader().getResourceAsStream("sld/BasicStyles.xml")); } catch (JAXBException e) { e.printStackTrace(); } LOGGER.info("BasicStyles.xml loaded"); Assert.assertTrue("Number of layers different to 5 : " + sld.getLayers().size(), sld.getLayers().size() == 5); Assert.assertTrue("Number of polygon styles different to 1 : " + sld.getLayer("Polygon").getStyles().size(), sld.getLayer("Polygon") .getStyles().size() == 1); Assert.assertTrue("Number of point styles different to 1 : " + sld.getLayer("Point").getStyles().size(), sld.getLayer("Point") .getStyles().size() == 1); Assert.assertTrue("Number of 'Line Dasharray' styles different to 2 : " + sld.getLayer("Line Dasharray").getStyles().size(), sld.getLayer("Line Dasharray").getStyles().size() == 2); Assert.assertTrue("Line with contour - Line fill - Red different 255", sld .getLayer("Line with contour").getStyles().get(1).getSymbolizer() .getStroke().getColor().getRed() == 255); Assert.assertTrue("Line with contour - Line fill - Green different 255", sld.getLayer("Line with contour").getStyles().get(1).getSymbolizer() .getStroke().getColor().getGreen() == 255); Assert.assertTrue("Line with contour - Line fill - Blue different 255", sld .getLayer("Line with contour").getStyles().get(1).getSymbolizer() .getStroke().getColor().getBlue() == 0); }