SymbolizerTypeAnalyzer extends ParametersAnalyzer { public boolean validateFill(Fill f){ return f instanceof SolidFill; }  boolean validateFill(Fill f); boolean validateStroke(Stroke s); boolean validateStrokeAndFill(Stroke s, Fill f); boolean validateGraphic(Graphic g);  }
@Test public void testValidFill() throws Exception { Style s = getStyle(COLOR_CATEGORIZE); AreaSymbolizer as = (AreaSymbolizer) s.getRules().get(0).getCompositeSymbolizer() .getSymbolizerList().get(0); SymbolizerTypeAnalyzer sta = new SymbolizerTypeAnalyzer(); assertTrue(sta.validateFill(as.getFill())); }
@Test public void testInvalidFill() throws Exception { Style s = getStyle(DENSITY_FILL); AreaSymbolizer as = (AreaSymbolizer) s.getRules().get(0).getCompositeSymbolizer() .getSymbolizerList().get(0); SymbolizerTypeAnalyzer sta = new SymbolizerTypeAnalyzer(); assertFalse(sta.validateFill(as.getFill())); }