This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch release-2.x in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push: new d38b859 Add JndiManagerTest looking for LOG4J2-3231. d38b859 is described below commit d38b85984248bd267fbdd6ece72a0e4941de5773 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Dec 14 20:14:13 2021 -0500 Add JndiManagerTest looking for LOG4J2-3231. --- .../logging/log4j/core/net/JndiManagerTest.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/net/JndiManagerTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/net/JndiManagerTest.java new file mode 100644 index 0000000..2006b0a --- /dev/null +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/net/JndiManagerTest.java @@ -0,0 +1,33 @@ +/* + * 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.logging.log4j.core.net; + +import static org.junit.jupiter.api.Assertions.assertFalse; + +import org.junit.jupiter.api.Test; + +/** + * Tests {@link JndiManager}. + */ +public class JndiManagerTest { + + @Test + public void testIsJndiEnabled() { + assertFalse(JndiManager.isJndiEnabled()); + } +}