Skip to content

Commit 5d6ec38

Browse files
committed
Migrate AutoConfigureMockMvc.
1 parent b76a0c7 commit 5d6ec38

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

graalpy/graalpy-spring-boot-guide/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ repositories {
2929

3030
dependencies {
3131
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
32-
implementation 'org.springframework.boot:spring-boot-starter-web'
33-
testImplementation 'org.springframework.boot:spring-boot-starter-test'
32+
implementation 'org.springframework.boot:spring-boot-starter-webmvc'
33+
testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
3434
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
3535
}
3636

graalpy/graalpy-spring-boot-guide/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</dependency>
2727
<dependency>
2828
<groupId>org.springframework.boot</groupId>
29-
<artifactId>spring-boot-starter-web</artifactId>
29+
<artifactId>spring-boot-starter-webmvc</artifactId>
3030
</dependency>
3131

3232
<dependency>
@@ -43,7 +43,7 @@
4343

4444
<dependency>
4545
<groupId>org.springframework.boot</groupId>
46-
<artifactId>spring-boot-starter-test</artifactId>
46+
<artifactId>spring-boot-starter-webmvc-test</artifactId>
4747
<scope>test</scope>
4848
</dependency>
4949
</dependencies>

graalpy/graalpy-spring-boot-guide/src/test/java/com/example/demo/DemoApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
import org.junit.jupiter.api.Test;
1010
import org.springframework.beans.factory.annotation.Autowired;
11-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
1211
import org.springframework.boot.test.context.SpringBootTest;
12+
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
1313
import org.springframework.test.annotation.DirtiesContext;
1414
import org.springframework.test.web.servlet.MockMvc;
1515

0 commit comments

Comments
 (0)