();
-
- @Override
- public Context getInitialContext(Hashtable, ?> environment) throws NamingException {
- return currentContext.get();
- }
-
- public static void setCurrentContext(Context context) {
- currentContext.set(context);
- }
-
- public static void clearCurrentContext() {
- currentContext.remove();
- }
-
-}
diff --git a/engine/src/test/java/org/camunda/bpm/container/impl/jmx/deployment/MockInitialContextRule.java b/engine/src/test/java/org/camunda/bpm/container/impl/jmx/deployment/MockInitialContextRule.java
deleted file mode 100644
index e86c54069b2..00000000000
--- a/engine/src/test/java/org/camunda/bpm/container/impl/jmx/deployment/MockInitialContextRule.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
- * under one or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information regarding copyright
- * ownership. Camunda licenses this file to you under the Apache License,
- * Version 2.0; 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.camunda.bpm.container.impl.jmx.deployment;
-
-import javax.naming.Context;
-
-import org.junit.rules.TestRule;
-import org.junit.runner.Description;
-import org.junit.runners.model.Statement;
-
-public class MockInitialContextRule implements TestRule {
-
- private final Context context;
-
- public MockInitialContextRule(Context context) {
- this.context = context;
- }
-
- @Override
- public Statement apply(final Statement base, Description description) {
- return new Statement() {
- @Override
- public void evaluate() throws Throwable {
- System.setProperty(Context.INITIAL_CONTEXT_FACTORY, MockInitialContextFactory.class.getName());
- MockInitialContextFactory.setCurrentContext(context);
- try {
- base.evaluate();
- } finally {
- System.clearProperty(Context.INITIAL_CONTEXT_FACTORY);
- MockInitialContextFactory.clearCurrentContext();
- }
- }
- };
- }
-
-}
diff --git a/engine/src/test/java/org/camunda/bpm/engine/test/api/history/HistoryCleanupOnEngineBootstrapTest.java b/engine/src/test/java/org/camunda/bpm/engine/test/api/history/HistoryCleanupOnEngineBootstrapTest.java
index baabadd3e0c..336dd33b82e 100644
--- a/engine/src/test/java/org/camunda/bpm/engine/test/api/history/HistoryCleanupOnEngineBootstrapTest.java
+++ b/engine/src/test/java/org/camunda/bpm/engine/test/api/history/HistoryCleanupOnEngineBootstrapTest.java
@@ -184,7 +184,7 @@ public void testBatchWindowXmlConfigParsingException() throws ParseException {
.createProcessEngineConfigurationFromResource("org/camunda/bpm/engine/test/history/history-cleanup-batch-window-map-wrong-values.camunda.cfg.xml")
.buildProcessEngine())
.isInstanceOf(Exception.class)
- .hasMessageContaining("startTime");
+ .hasMessageContaining("Error creating bean with name 'processEngineConfiguration'");
}
@Test
diff --git a/engine/src/test/resources/jndi.properties b/engine/src/test/resources/jndi.properties
new file mode 100644
index 00000000000..910730cedf6
--- /dev/null
+++ b/engine/src/test/resources/jndi.properties
@@ -0,0 +1,2 @@
+java.naming.factory.initial=org.osjava.sj.SimpleContextFactory
+org.osjava.sj.jndi.shared=true
diff --git a/webapps/assembly/src/main/java/org/camunda/bpm/webapp/impl/security/filter/PathFilterRule.java b/webapps/assembly/src/main/java/org/camunda/bpm/webapp/impl/security/filter/PathFilterRule.java
index 5643acd59af..2b98bdfa706 100644
--- a/webapps/assembly/src/main/java/org/camunda/bpm/webapp/impl/security/filter/PathFilterRule.java
+++ b/webapps/assembly/src/main/java/org/camunda/bpm/webapp/impl/security/filter/PathFilterRule.java
@@ -22,10 +22,9 @@
import org.camunda.bpm.webapp.impl.security.auth.Authentication;
import org.camunda.bpm.webapp.impl.security.filter.RequestMatcher.Match;
import org.camunda.bpm.webapp.impl.security.filter.util.FilterRules;
-import org.springframework.util.PathMatcher;
/**
- * A {@link SecurityFilterRule} that deleagates to a set of {@link PathMatcher}s
+ * A {@link SecurityFilterRule} that delegates to a set of path matchers
*
* How this thing works:
*