@org.junit.Test public void testStrictParameter() throws Exception { GetLegendGraphicRequest request; // default value request = requestReader.read(new GetLegendGraphicRequest(), allParameters, allParameters); assertTrue(request.isStrict()); allParameters.put("STRICT", "false"); allParameters.remove("LAYER"); request = requestReader.read(new GetLegendGraphicRequest(), allParameters, allParameters); assertFalse(request.isStrict()); }
rawKvp.containsKey("STRICT") ? Boolean.valueOf((String) rawKvp.get("STRICT")) : request.isStrict(); request.setStrict(strict); if (strict && layer == null) {
boolean strict = request.isStrict();
boolean strict = request.isStrict();