Skip to content

Commit cd1f886

Browse files
committed
feat(dependencies): update logging dependencies and add integration test for FesodWebApplication
1 parent 7abe499 commit cd1f886

3 files changed

Lines changed: 64 additions & 1 deletion

File tree

fesod-examples/fesod-sheet-examples/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
<version>${logback-classic.version}</version>
6767
</dependency>
6868

69+
<dependency>
70+
<groupId>org.apache.logging.log4j</groupId>
71+
<artifactId>log4j-to-slf4j</artifactId>
72+
</dependency>
73+
6974
<dependency>
7075
<groupId>com.alibaba.fastjson2</groupId>
7176
<artifactId>fastjson2</artifactId>
@@ -81,5 +86,11 @@
8186
<artifactId>junit-jupiter</artifactId>
8287
<scope>test</scope>
8388
</dependency>
89+
90+
<dependency>
91+
<groupId>org.springframework.boot</groupId>
92+
<artifactId>spring-boot-starter-test</artifactId>
93+
<scope>test</scope>
94+
</dependency>
8495
</dependencies>
8596
</project>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package org.apache.fesod.sheet.examples.web;
21+
22+
import org.junit.jupiter.api.Test;
23+
import org.springframework.boot.test.context.SpringBootTest;
24+
25+
/**
26+
* Integration test that verifies FesodWebApplication starts successfully.
27+
*/
28+
@SpringBootTest(classes = FesodWebApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
29+
class FesodWebApplicationITCase {
30+
31+
@Test
32+
void contextLoads() {
33+
// If the application context fails to start, this test will fail.
34+
}
35+
}

pom.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
<slf4j-simple.version>1.7.36</slf4j-simple.version>
105105
<jcl-over-slf4j.version>1.7.36</jcl-over-slf4j.version>
106106
<log4j-over-slf4j.version>1.7.36</log4j-over-slf4j.version>
107-
<logback-classic.version>1.5.32</logback-classic.version>
107+
<log4j-to-slf4j.version>2.24.3</log4j-to-slf4j.version>
108+
<logback-classic.version>1.2.13</logback-classic.version>
108109
<mockserver.version>5.15.0</mockserver.version>
109110
<jacoco.version>0.8.14</jacoco.version>
110111
<junit.version>5.13.4</junit.version>
@@ -223,6 +224,11 @@
223224
<artifactId>log4j-over-slf4j</artifactId>
224225
<version>${log4j-over-slf4j.version}</version>
225226
</dependency>
227+
<dependency>
228+
<groupId>org.apache.logging.log4j</groupId>
229+
<artifactId>log4j-to-slf4j</artifactId>
230+
<version>${log4j-to-slf4j.version}</version>
231+
</dependency>
226232
<dependency>
227233
<groupId>ch.qos.logback</groupId>
228234
<artifactId>logback-classic</artifactId>
@@ -233,6 +239,12 @@
233239
<artifactId>spring-boot-starter-web</artifactId>
234240
<version>${spring-boot-starter-web.version}</version>
235241
</dependency>
242+
<dependency>
243+
<groupId>org.springframework.boot</groupId>
244+
<artifactId>spring-boot-starter-test</artifactId>
245+
<version>${spring-boot-starter-web.version}</version>
246+
<scope>test</scope>
247+
</dependency>
236248
<dependency>
237249
<groupId>org.mock-server</groupId>
238250
<artifactId>mockserver-netty</artifactId>
@@ -329,6 +341,11 @@
329341
<artifactId>log4j-over-slf4j</artifactId>
330342
<scope>test</scope>
331343
</dependency>
344+
<dependency>
345+
<groupId>org.apache.logging.log4j</groupId>
346+
<artifactId>log4j-to-slf4j</artifactId>
347+
<scope>test</scope>
348+
</dependency>
332349
<dependency>
333350
<groupId>ch.qos.logback</groupId>
334351
<artifactId>logback-classic</artifactId>

0 commit comments

Comments
 (0)