@Test public void testCreateLineSymbolizer() throws Exception { JSONObject style = new JSONObject(); style.put("strokeColor", "#fff"); style.put("strokeOpacity", 0.2); style.put("strokeWidth", 2); style.put("strokeDashstyle", "5 2"); style.put("strokeLinecap", "round"); LineSymbolizer symbolizer = helper.createLineSymbolizer(new PJsonObject(style, null)); assertNotNull(symbolizer); transformer.transform(symbolizer); assertStroke(0.2, "round", symbolizer.getStroke(), "#FFFFFF", new float[]{5f, 2f}, 2.0); }
@VisibleForTesting @Nullable protected LineSymbolizer createLineSymbolizer(final PJsonObject styleJson) { final Stroke stroke = createStroke(styleJson, true); if (stroke == null) { return null; } else { return this.styleBuilder.createLineSymbolizer(stroke); } }
JsonStyleParserHelper { @VisibleForTesting @Nullable protected LineSymbolizer createLineSymbolizer(final PJsonObject styleJson) { final Stroke stroke = createStroke(styleJson, true); if (stroke == null) { return null; } else { return this.styleBuilder.createLineSymbolizer(stroke); } } }
JsonStyleParserHelper { @VisibleForTesting @Nullable protected LineSymbolizer createLineSymbolizer(final PJsonObject styleJson) { final Stroke stroke = createStroke(styleJson, true); if (stroke == null) { return null; } else { return this.styleBuilder.createLineSymbolizer(stroke); } } JsonStyleParserHelper(
            @Nullable final Configuration configuration,
            @Nonnull final ClientHttpRequestFactory requestFactory,
            @Nonnull final StyleBuilder styleBuilder,
            final boolean allowNullSymbolizer); }
JsonStyleParserHelper { @VisibleForTesting @Nullable protected LineSymbolizer createLineSymbolizer(final PJsonObject styleJson) { final Stroke stroke = createStroke(styleJson, true); if (stroke == null) { return null; } else { return this.styleBuilder.createLineSymbolizer(stroke); } } JsonStyleParserHelper(
            @Nullable final Configuration configuration,
            @Nonnull final ClientHttpRequestFactory requestFactory,
            @Nonnull final StyleBuilder styleBuilder,
            final boolean allowNullSymbolizer); Style createStyle(final List<Rule> styleRules); @Nullable PointSymbolizer createPointSymbolizer(final PJsonObject styleJson); }
JsonStyleParserHelper { @VisibleForTesting @Nullable protected LineSymbolizer createLineSymbolizer(final PJsonObject styleJson) { final Stroke stroke = createStroke(styleJson, true); if (stroke == null) { return null; } else { return this.styleBuilder.createLineSymbolizer(stroke); } } JsonStyleParserHelper(
            @Nullable final Configuration configuration,
            @Nonnull final ClientHttpRequestFactory requestFactory,
            @Nonnull final StyleBuilder styleBuilder,
            final boolean allowNullSymbolizer); Style createStyle(final List<Rule> styleRules); @Nullable PointSymbolizer createPointSymbolizer(final PJsonObject styleJson);  }