Java Code Examples for org.geotools.styling.Stroke#setGraphicStroke()

The following examples show how to use org.geotools.styling.Stroke#setGraphicStroke() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GetMinimumVersionTest.java    From sldeditor with GNU General Public License v3.0 6 votes vote down vote up
/** Test method for StrokeDetails */
@Test
public void testStrokeGetMinimumVersion() {
    StrokeDetails details = new StrokeDetails();

    details.getMinimumVersion(null, null, null);

    Stroke stroke = styleFactory.createStroke(ff.literal("#654321"), ff.literal(3.2));
    Graphic graphicStroke = styleFactory.createDefaultGraphic();
    stroke.setGraphicStroke(graphicStroke);

    List<VendorOptionPresent> vendorOptionsPresentList = null;
    Object parentObj = null;
    details.getMinimumVersion(parentObj, stroke, vendorOptionsPresentList);

    vendorOptionsPresentList = new ArrayList<VendorOptionPresent>();
    details.getMinimumVersion(parentObj, stroke, vendorOptionsPresentList);

    assertTrue(vendorOptionsPresentList.size() == 0);
}