Skip to content
This repository was archived by the owner on Dec 13, 2020. It is now read-only.

Commit 2d28469

Browse files
committed
Test: AOP Pointcut
- UserService
1 parent 3531f70 commit 2d28469

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/com/springboot/aop/aop/BoardServiceTest.java

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.springboot.aop.aop;
22

33
import com.springboot.aop.service.BoardService;
4+
import com.springboot.aop.service.UserService;
45
import org.junit.Assert;
56
import org.junit.Test;
67
import org.junit.runner.RunWith;
@@ -14,10 +15,17 @@ public class BoardServiceTest {
1415

1516
@Autowired
1617
private BoardService boardService;
18+
@Autowired
19+
private UserService userService;
1720

1821
@Test
1922
public void findBoards() throws Exception {
2023
Assert.assertEquals(boardService.getBoards().size(), 100);
2124
}
2225

26+
@Test
27+
public void findUsers() throws Exception {
28+
Assert.assertEquals(userService.getUsers().size(), 100);
29+
}
30+
2331
}

0 commit comments

Comments
 (0)