Return-Path: X-Original-To: apmail-sling-commits-archive@www.apache.org Delivered-To: apmail-sling-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A80F10B35 for ; Tue, 15 Oct 2013 13:29:31 +0000 (UTC) Received: (qmail 57707 invoked by uid 500); 15 Oct 2013 13:29:30 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 57626 invoked by uid 500); 15 Oct 2013 13:29:30 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 57608 invoked by uid 99); 15 Oct 2013 13:29:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 13:29:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 13:29:20 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0867C23889E0; Tue, 15 Oct 2013 13:29:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1532328 - in /sling/trunk/contrib/extensions/slf4j-mdc: ./ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache/sling/ src/test/java/org/apache/sling/extensions/ src/test/java/org/apache/sling/exte... Date: Tue, 15 Oct 2013 13:28:59 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131015132900.0867C23889E0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bdelacretaz Date: Tue Oct 15 13:28:59 2013 New Revision: 1532328 URL: http://svn.apache.org/r1532328 Log: SLING-3048 - tests, contributed by Chetan Mehrotra, thanks! Added: sling/trunk/contrib/extensions/slf4j-mdc/src/test/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ITMDCFilter.java (with props) sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ServerConfiguration.java (with props) sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/MDCStateServlet.java (with props) Modified: sling/trunk/contrib/extensions/slf4j-mdc/pom.xml Modified: sling/trunk/contrib/extensions/slf4j-mdc/pom.xml URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/slf4j-mdc/pom.xml?rev=1532328&r1=1532327&r2=1532328&view=diff ============================================================================== --- sling/trunk/contrib/extensions/slf4j-mdc/pom.xml (original) +++ sling/trunk/contrib/extensions/slf4j-mdc/pom.xml Tue Oct 15 13:28:59 2013 @@ -38,68 +38,327 @@ from requests and adds them to the MDC - + + 3.0.0 + + ${basedir}/target + + + ${bundle.build.name}/${project.build.finalName}.jar + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + + org.apache.sling.commons.osgi;inline=org/apache/sling/commons/osgi/PropertiesUtil.class + + + + + + org.apache.felix + maven-scr-plugin + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.8 + + + reserve-network-port + + reserve-network-port + + pre-integration-test + + + http.port + + + + + + + org.codehaus.mojo + properties-maven-plugin + 1.0-alpha-2 + + + + set-system-properties + + pre-integration-test + + + + project.bundle.file + ${bundle.file.name} + + + http.port + ${http.port} + + + + + + + + org.apache.servicemix.tooling + depends-maven-plugin + 1.2 + + + generate-depends-file + + generate-depends-file + + + + + + + maven-failsafe-plugin + 2.12 + + + + integration-test + verify + + + + + + ${coverage.command} + ${http.port} + ${bundle.file.name} + + always + none + 1 + + + + + + + + org.slf4j + slf4j-api + provided + + + org.osgi + org.osgi.core + 4.2.0 + + + org.osgi + org.osgi.compendium + 4.2.0 + + + org.apache.sling + org.apache.sling.commons.osgi + 2.2.0 + + + org.apache.sling + org.apache.sling.api + 2.1.0 + true + + + javax.servlet + servlet-api + 2.3 + + + javax.jcr + jcr + 2.0 + true + + + org.apache.felix + org.apache.felix.scr.annotations + + + + + junit + junit + test + 4.10 + + + org.json + json + 20070829 + test + + + org.slf4j + slf4j-simple + + + + org.ops4j.pax.exam + pax-exam-container-forked + ${pax-exam.version} + test + + + org.ops4j.pax.exam + pax-exam-junit4 + ${pax-exam.version} + test + + + org.ops4j.pax.exam + pax-exam-link-mvn + ${pax-exam.version} + test + + + org.ops4j.pax.url + pax-url-wrap + 1.5.2 + test + + + javax.inject + javax.inject + 1 + test + + + org.apache.felix + org.apache.felix.configadmin + 1.6.0 + test + + + org.apache.felix + org.apache.felix.http.jetty + 2.2.0 + test + + + org.apache.felix + org.apache.felix.http.whiteboard + 2.2.0 + test + + + org.apache.felix + org.apache.felix.scr + 1.6.2 + test + + + org.apache.sling + org.apache.sling.testing.tools + 1.0.2 + test + + + org.apache.felix + org.apache.felix.framework + 4.0.2 + test + + + + + + + ide + - - org.apache.felix - maven-bundle-plugin - true + + maven-antrun-plugin + + + scr-file-create + package + + run + - - - org.apache.sling.commons.osgi;inline=org/apache/sling/commons/osgi/PropertiesUtil.class - - + + + - - - org.apache.felix - maven-scr-plugin - + + + - - - - - org.slf4j - slf4j-api - provided - - - org.osgi - org.osgi.core - 4.2.0 - - - org.osgi - org.osgi.compendium - 4.2.0 - - - org.apache.sling - org.apache.sling.commons.osgi - 2.2.0 - - - org.apache.sling - org.apache.sling.api - 2.1.0 - true - - - javax.servlet - servlet-api - 2.3 - - - javax.jcr - jcr - 2.0 - true - - - org.apache.felix - org.apache.felix.scr.annotations - - + + + + coverage + + + + org.jacoco + jacoco-maven-plugin + 0.6.2.201302030002 + + + prepare-agent + + prepare-agent + + + coverage.command + + org.apache.sling.extensions.mdc.internal.* + + + + + report + post-integration-test + + report + + + + check + + check + + + true + + 100 + 90 + 95 + 85 + 85 + 90 + + + + + + + + + Added: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ITMDCFilter.java URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ITMDCFilter.java?rev=1532328&view=auto ============================================================================== --- sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ITMDCFilter.java (added) +++ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ITMDCFilter.java Tue Oct 15 13:28:59 2013 @@ -0,0 +1,133 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.sling.extensions.mdc.integration; + +import org.apache.http.impl.client.DefaultHttpClient; +import org.apache.http.impl.cookie.BasicClientCookie; +import org.apache.sling.testing.tools.http.Request; +import org.apache.sling.testing.tools.http.RequestBuilder; +import org.apache.sling.testing.tools.http.RequestCustomizer; +import org.apache.sling.testing.tools.http.RequestExecutor; +import org.apache.sling.testing.tools.retry.RetryLoop; +import org.json.JSONObject; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.ops4j.pax.exam.ExamSystem; +import org.ops4j.pax.exam.TestContainer; +import org.ops4j.pax.exam.spi.DefaultExamSystem; +import org.ops4j.pax.exam.spi.PaxExamRuntime; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.IOException; +import java.util.concurrent.TimeUnit; + +import static junit.framework.Assert.assertNull; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; + +public class ITMDCFilter { + private static Logger log = LoggerFactory.getLogger(ITMDCFilter.class); + private static TestContainer testContainer; + + private DefaultHttpClient httpClient = new DefaultHttpClient(); + private RequestExecutor executor = new RequestExecutor(httpClient); + + @Before + public void startContainer() throws Exception { + if (testContainer == null) { + ServerConfiguration sc = new ServerConfiguration(); + ExamSystem system = DefaultExamSystem.create(sc.config()); + testContainer = PaxExamRuntime.createContainer(system); + testContainer.start(); + new RetryLoop(new RetryLoop.Condition() { + public String getDescription() { + return "Check if MDCTestServlet is up"; + } + + public boolean isTrue() throws Exception { + RequestBuilder rb = new RequestBuilder(ServerConfiguration.getServerUrl()); + executor.execute(rb.buildGetRequest("/mdc")).assertStatus(200); + return true; + } + },5,100); + } + } + + @Test + public void testDefault() throws Exception{ + RequestBuilder rb = new RequestBuilder(ServerConfiguration.getServerUrl()); + // Add Sling POST options + RequestExecutor result = executor.execute( + rb.buildGetRequest("/mdc","foo","bar")); + + JSONObject jb = new JSONObject(result.getContent()); + assertEquals("/mdc", jb.getString("req.requestURI")); + assertEquals("foo=bar", jb.getString("req.queryString")); + assertEquals(ServerConfiguration.getServerUrl() + "/mdc", jb.getString("req.requestURL")); + log.info("Response {}",result.getContent()); + } + + @Test + public void testWihCustomData() throws Exception{ + RequestBuilder rb = new RequestBuilder(ServerConfiguration.getServerUrl()); + + //Create test config via servlet + executor.execute(rb.buildGetRequest("/mdc", "createTestConfig", "true")); + TimeUnit.SECONDS.sleep(1); + + //Pass custom cookie + BasicClientCookie cookie = new BasicClientCookie("mdc-test-cookie", "foo-test-cookie"); + cookie.setPath("/"); + cookie.setDomain("localhost"); + httpClient.getCookieStore().addCookie(cookie); + + //Execute request + RequestExecutor result = executor.execute( + rb.buildGetRequest("/mdc", "mdc-test-param", "foo-test-param", "ignored-param", "ignored-value") + .withHeader("X-Forwarded-For", "foo-forwarded-for") + .withHeader("mdc-test-header", "foo-test-header") + ); + + JSONObject jb = new JSONObject(result.getContent()); + log.info("Response {}",result.getContent()); + + assertEquals("/mdc", jb.getString("req.requestURI")); + assertEquals(ServerConfiguration.getServerUrl() + "/mdc", jb.getString("req.requestURL")); + assertEquals("foo-forwarded-for", jb.getString("req.xForwardedFor")); + assertEquals("foo-test-header", jb.getString("mdc-test-header")); + assertEquals("foo-test-param", jb.getString("mdc-test-param")); + assertEquals("foo-test-cookie", jb.getString("mdc-test-cookie")); + + //Only configured params must be returned + assertFalse(jb.has("ignored-param")); + } + + + @AfterClass + public static void stopContainer() { + if (testContainer != null) { + testContainer.stop(); + testContainer = null; + } + } +} Propchange: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ITMDCFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ITMDCFilter.java ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Rev URL Added: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ServerConfiguration.java URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ServerConfiguration.java?rev=1532328&view=auto ============================================================================== --- sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ServerConfiguration.java (added) +++ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ServerConfiguration.java Tue Oct 15 13:28:59 2013 @@ -0,0 +1,129 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.sling.extensions.mdc.integration; + +import org.apache.sling.extensions.mdc.integration.servlet.MDCStateServlet; +import org.ops4j.pax.exam.Configuration; +import org.ops4j.pax.exam.CoreOptions; +import org.ops4j.pax.exam.Option; +import org.ops4j.pax.exam.OptionUtils; +import org.ops4j.pax.tinybundles.core.TinyBundle; +import org.osgi.framework.Constants; + +import java.io.File; + +import static org.ops4j.pax.exam.CoreOptions.cleanCaches; +import static org.ops4j.pax.exam.CoreOptions.frameworkProperty; +import static org.ops4j.pax.exam.CoreOptions.mavenBundle; +import static org.ops4j.pax.exam.CoreOptions.options; +import static org.ops4j.pax.exam.CoreOptions.provision; +import static org.ops4j.pax.exam.CoreOptions.systemProperty; +import static org.ops4j.pax.exam.CoreOptions.wrappedBundle; +import static org.ops4j.pax.tinybundles.core.TinyBundles.bundle; +import static org.ops4j.pax.tinybundles.core.TinyBundles.withBnd; + +public class ServerConfiguration { + + // the name of the system property providing the bundle file to be installed and tested + protected static final String BUNDLE_JAR_SYS_PROP = "project.bundle.file"; + + // the name of the system property which captures the jococo coverage agent command + //if specified then agent would be specified otherwise ignored + protected static final String COVERAGE_COMMAND = "coverage.command"; + + //Name of the property for port of server + public static final String HTTP_PORT_PROP = "http.port"; + + public static final String HTTP_SERVER__URL_PROP = "serverUrl"; + + // the default bundle jar file name + protected static final String BUNDLE_JAR_DEFAULT = "BUNDLE_JAR_NOT_SPECIFIED"; + + // the JVM option to set to enable remote debugging + @SuppressWarnings("UnusedDeclaration") + protected static final String DEBUG_VM_OPTION = "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=31313"; + + // the actual JVM option set, extensions may implement a static + // initializer overwriting this value to have the configuration() + // method include it when starting the OSGi framework JVM + protected static String paxRunnerVmOption = null; +// protected static String paxRunnerVmOption = DEBUG_VM_OPTION; + + protected static String DEFAULT_PORT = "8080"; + + @Configuration + public Option[] config() { + final String bundleFileName = System.getProperty(BUNDLE_JAR_SYS_PROP, + BUNDLE_JAR_DEFAULT); + final File bundleFile = new File(bundleFileName); + if (!bundleFile.canRead()) { + throw new IllegalArgumentException("Cannot read from bundle file " + + bundleFileName + " specified in the " + BUNDLE_JAR_SYS_PROP + + " system property"); + } + Option[] base = options( + // the current project (the bundle under test) + CoreOptions.bundle(bundleFile.toURI().toString()), + mavenBundle("org.ops4j.pax.logging", "pax-logging-api", "1.7.0").startLevel(2), + mavenBundle("org.ops4j.pax.logging", "pax-logging-service", "1.7.0").startLevel(2), + mavenBundle("org.apache.felix", "org.apache.felix.configadmin").versionAsInProject(), + mavenBundle("org.apache.felix", "org.apache.felix.http.jetty").versionAsInProject().startLevel(3), + mavenBundle("org.apache.felix", "org.apache.felix.http.whiteboard").versionAsInProject().startLevel(5), + mavenBundle("org.apache.felix", "org.apache.felix.scr").versionAsInProject(), + wrappedBundle(mavenBundle("org.json", "json").versionAsInProject()), + systemProperty("pax.exam.osgi.unresolved.fail").value("fail"), + systemProperty("org.osgi.service.http.port").value(getServerPort()), + cleanCaches(), + createTestBundle(), + addCodeCoverageOption()); + final Option vmOption = (paxRunnerVmOption != null) ? CoreOptions.vmOption(paxRunnerVmOption) + : null; + return OptionUtils.combine(base, vmOption); + } + + private Option createTestBundle() { + TinyBundle bundle = bundle() + .add(MDCStateServlet.class) + .set(Constants.BUNDLE_SYMBOLICNAME,"org.apache.sling.extensions.slf4j.mdc.testbundle") + .set(Constants.BUNDLE_ACTIVATOR , MDCStateServlet.class.getName()); + return provision(bundle.build(withBnd())); + } + + private static String getServerPort() { + return System.getProperty(HTTP_PORT_PROP, DEFAULT_PORT); + } + + private Option addCodeCoverageOption() { + String coverageCommand = System.getProperty(COVERAGE_COMMAND); + if (coverageCommand != null) { + return CoreOptions.vmOption(coverageCommand); + } + return null; + } + + public static String getServerUrl() { + String serverUrl = System.getProperty(HTTP_SERVER__URL_PROP); + if (serverUrl != null) { + return serverUrl; + } + + return String.format("http://localhost:%s", getServerPort()); + } +} Propchange: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ServerConfiguration.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/ServerConfiguration.java ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Rev URL Added: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/MDCStateServlet.java URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/MDCStateServlet.java?rev=1532328&view=auto ============================================================================== --- sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/MDCStateServlet.java (added) +++ sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/MDCStateServlet.java Tue Oct 15 13:28:59 2013 @@ -0,0 +1,79 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.sling.extensions.mdc.integration.servlet; + +import org.json.JSONObject; +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; +import org.osgi.service.cm.Configuration; +import org.osgi.service.cm.ConfigurationAdmin; +import org.osgi.util.tracker.ServiceTracker; +import org.slf4j.MDC; + +import javax.servlet.Servlet; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.io.PrintWriter; +import java.util.Dictionary; +import java.util.Hashtable; +import java.util.Properties; + +public class MDCStateServlet extends HttpServlet implements BundleActivator{ + private ServiceTracker configAdminTracker; + + public void start(BundleContext context) throws Exception { + Properties p = new Properties(); + p.setProperty("alias","/mdc"); + context.registerService(Servlet.class.getName(),this,p); + configAdminTracker = new ServiceTracker(context, ConfigurationAdmin.class.getName(),null); + configAdminTracker.open(); + } + + public void stop(BundleContext context) throws Exception { + + } + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + PrintWriter pw = resp.getWriter(); + + if(req.getParameter("createTestConfig") != null){ + createTestConfig(); + pw.print("created"); + return; + } + + JSONObject jb = new JSONObject(MDC.getCopyOfContextMap()); + pw.print(jb.toString()); + } + + private void createTestConfig() throws IOException { + ConfigurationAdmin ca = (ConfigurationAdmin) configAdminTracker.getService(); + Configuration cfg = ca.getConfiguration("org.apache.sling.extensions.mdc.internal.MDCInsertingFilter",null); + + Dictionary dict = new Hashtable(); + dict.put("headers",new String[]{"mdc-test-header"}); + dict.put("parameters",new String[]{"mdc-test-param"}); + dict.put("cookies",new String[]{"mdc-test-cookie"}); + cfg.update(dict); + } +} Propchange: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/MDCStateServlet.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: sling/trunk/contrib/extensions/slf4j-mdc/src/test/java/org/apache/sling/extensions/mdc/integration/servlet/MDCStateServlet.java ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Rev URL