Skip to content

Commit 7fd8349

Browse files
authored
Remove unused mockmvc (#537)
Service level tests don't need `@AutoConfigureMockMvc`.
1 parent 748fcfe commit 7fd8349

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

srv/src/test/java/my/bookshop/AdminServiceTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import org.junit.jupiter.api.Test;
1212
import org.springframework.beans.factory.annotation.Autowired;
13-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
1413
import org.springframework.boot.test.context.SpringBootTest;
1514
import org.springframework.security.test.context.support.WithMockUser;
1615

@@ -25,7 +24,6 @@
2524
import cds.gen.adminservice.Orders;
2625

2726
@SpringBootTest
28-
@AutoConfigureMockMvc
2927
public class AdminServiceTest {
3028

3129
@Autowired

0 commit comments

Comments
 (0)