Fix test logging config (avoid noop logger warning)
diff --git a/asn1/api/pom.xml b/asn1/api/pom.xml
index 5fca05b..f6e0e75 100644
--- a/asn1/api/pom.xml
+++ b/asn1/api/pom.xml
@@ -39,24 +39,6 @@
</dependency>
<dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
<groupId>${project.groupId}</groupId>
<artifactId>api-i18n</artifactId>
</dependency>
diff --git a/integ-osgi/src/test/resources/log4j.properties b/integ-osgi/src/test/resources/log4j.properties
new file mode 100755
index 0000000..439f1ec
--- /dev/null
+++ b/integ-osgi/src/test/resources/log4j.properties
@@ -0,0 +1,21 @@
+#############################################################################
+# 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.
+#############################################################################
+log4j.rootCategory=ERROR, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
diff --git a/ldap/client/api/pom.xml b/ldap/client/api/pom.xml
index 4395ea5..1cf6382 100644
--- a/ldap/client/api/pom.xml
+++ b/ldap/client/api/pom.xml
@@ -90,12 +90,6 @@
<version>2.28.1</version>
<scope>test</scope>
</dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
diff --git a/ldap/model/src/test/java/org/apache/directory/api/ldap/model/schema/PrepareStringTest.java b/ldap/model/src/test/java/org/apache/directory/api/ldap/model/schema/PrepareStringTest.java
index df3fe96..9fa021b 100644
--- a/ldap/model/src/test/java/org/apache/directory/api/ldap/model/schema/PrepareStringTest.java
+++ b/ldap/model/src/test/java/org/apache/directory/api/ldap/model/schema/PrepareStringTest.java
@@ -20,8 +20,6 @@
package org.apache.directory.api.ldap.model.schema;
-import java.io.IOException;
-
import org.apache.directory.api.util.exception.InvalidCharacterException;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.parallel.Execution;
@@ -38,10 +36,10 @@
public class PrepareStringTest
{
@Test
- public void testEscapeBackSlash() throws IOException
+ public void testEscapeBackSlash()
{
String result = PrepareString.normalize( "C:\\a\\b\\c" );
- System.out.println( result );
+ assertEquals( "C:\\a\\b\\c", result );
}
//-------------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 0970329..ae6a739 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,7 @@
<logback.version>1.3.0-alpha5</logback.version>
<mina.core.version>2.1.3</mina.core.version>
<org.osgi.core.version>6.0.0</org.osgi.core.version>
- <org.apache.felix.version>6.0.3</org.apache.felix.version>
+ <org.apache.felix.version>7.0.0</org.apache.felix.version>
<pax-exam.version>4.13.1</pax-exam.version>
<pax-url.version>2.6.2</pax-url.version>
<slf4j.api.version>1.7.26</slf4j.api.version>
@@ -648,6 +648,14 @@
</dependencies>
</dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
<scm>
<connection>scm:git:https://gitbox.apache.org/repos/asf/directory-ldap-api.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/directory-ldap-api.git</developerConnection>
diff --git a/util/pom.xml b/util/pom.xml
index 76d7e68..4f746b3 100644
--- a/util/pom.xml
+++ b/util/pom.xml
@@ -53,12 +53,6 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>