Skip to content

Commit 8593941

Browse files
authored
test: fix 'SLF4J(W): No SLF4J providers were found.' warning (#1772)
1 parent b2852f5 commit 8593941

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

playwright/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
<groupId>org.java-websocket</groupId>
5858
<artifactId>Java-WebSocket</artifactId>
5959
</dependency>
60+
<!--
61+
The following slf4j-simple dependency resolves the warning:
62+
'SLF4J(W): No SLF4J providers were found.'
63+
This warning is produced by the org.java-websocket library.
64+
-->
65+
<dependency>
66+
<groupId>org.slf4j</groupId>
67+
<artifactId>slf4j-simple</artifactId>
68+
</dependency>
6069
<dependency>
6170
<groupId>org.junit.jupiter</groupId>
6271
<artifactId>junit-jupiter-engine</artifactId>

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<junit.version>5.12.1</junit.version>
4949
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5050
<websocket.version>1.6.0</websocket.version>
51+
<slf4j.version>2.0.17</slf4j.version>
5152
<opentest4j.version>1.3.0</opentest4j.version>
5253
</properties>
5354

@@ -91,6 +92,17 @@
9192
<version>${websocket.version}</version>
9293
<scope>test</scope>
9394
</dependency>
95+
<!--
96+
The following slf4j-simple dependency resolves the warning:
97+
'SLF4J(W): No SLF4J providers were found.'
98+
This warning is produced by the org.java-websocket library.
99+
-->
100+
<dependency>
101+
<groupId>org.slf4j</groupId>
102+
<artifactId>slf4j-simple</artifactId>
103+
<version>${slf4j.version}</version>
104+
<scope>test</scope>
105+
</dependency>
94106
<dependency>
95107
<groupId>org.junit.jupiter</groupId>
96108
<artifactId>junit-jupiter-api</artifactId>

0 commit comments

Comments
 (0)