SymbolizerTypeAnalyzer extends ParametersAnalyzer { public boolean validateStrokeAndFill(Stroke s, Fill f){ return (f == null || validateFill(f)) && (s == null || validateStroke(s)); }  boolean validateFill(Fill f); boolean validateStroke(Stroke s); boolean validateStrokeAndFill(Stroke s, Fill f); boolean validateGraphic(Graphic g);  }
@Test public void testNullStrokeAndFill() throws Exception { SymbolizerTypeAnalyzer sta = new SymbolizerTypeAnalyzer(); assertTrue(sta.validateStrokeAndFill(null, null)); }
@Test public void testNullStrokeNotFill() throws Exception { SymbolizerTypeAnalyzer sta = new SymbolizerTypeAnalyzer(); assertTrue(sta.validateStrokeAndFill(null,new SolidFill())); }
@Test public void testNullFillNotStroke() throws Exception { SymbolizerTypeAnalyzer sta = new SymbolizerTypeAnalyzer(); assertTrue(sta.validateStrokeAndFill(new PenStroke(),null)); }
@Test public void testNotNullFillAndStroke() throws Exception { SymbolizerTypeAnalyzer sta = new SymbolizerTypeAnalyzer(); assertTrue(sta.validateStrokeAndFill(new PenStroke(),new SolidFill())); }