Skip to content

Commit 745e9a9

Browse files
added DB cleanup to UserControllerTest.java
1 parent 93df67c commit 745e9a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/hexlet/code/controller/api/UserControllerTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ class UserControllerTest {
6565

6666
@BeforeEach
6767
void setUp() {
68+
userRepository.deleteAll();
69+
6870
mvc = MockMvcBuilders.webAppContextSetup(wac)
6971
.defaultResponseCharacterEncoding(StandardCharsets.UTF_8)
7072
.apply(springSecurity())

0 commit comments

Comments
 (0)