Skip to content

Commit 911483a

Browse files
committed
Move LoggingInitializationListener into httpcore5 tests jar
This allows the `LoggingInitializationListener` to be directly reused by downstream projects, along with `junit-platform.properties`.
1 parent e385f47 commit 911483a

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

httpcore5/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
<artifactId>junit-jupiter</artifactId>
4646
<scope>test</scope>
4747
</dependency>
48+
<dependency>
49+
<groupId>org.junit.platform</groupId>
50+
<artifactId>junit-platform-launcher</artifactId>
51+
<scope>test</scope>
52+
</dependency>
4853
<dependency>
4954
<groupId>org.hamcrest</groupId>
5055
<artifactId>hamcrest</artifactId>
@@ -116,4 +121,4 @@
116121
</plugins>
117122
</reporting>
118123

119-
</project>
124+
</project>

httpcore5-testing/src/test/java/org/apache/hc/core5/testing/LoggingInitializationListener.java renamed to httpcore5/src/test/java/org/apache/hc/core5/LoggingInitializationListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* <http://www.apache.org/>.
2525
*
2626
*/
27-
package org.apache.hc.core5.testing;
27+
package org.apache.hc.core5;
2828

2929
import org.junit.platform.launcher.LauncherSession;
3030
import org.junit.platform.launcher.LauncherSessionListener;

httpcore5-testing/src/test/resources/META-INF/services/org.junit.platform.launcher.LauncherSessionListener renamed to httpcore5/src/test/resources/META-INF/services/org.junit.platform.launcher.LauncherSessionListener

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818
#
19-
org.apache.hc.core5.testing.LoggingInitializationListener
19+
org.apache.hc.core5.LoggingInitializationListener

0 commit comments

Comments
 (0)