-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoardServiceTest.java
More file actions
57 lines (45 loc) · 1.31 KB
/
BoardServiceTest.java
File metadata and controls
57 lines (45 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package org.dailystudio.springbootstudy.service;
import lombok.extern.slf4j.Slf4j;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class BoardServiceTest {
private static final String DEFAULT_CONTENT = "default";
@Autowired
private BoardService boardService;
private List<String> contents;
@After
public void tearDown() throws Exception {
log.info(contents.toString());
}
@Test
public void 캐시0() {
boardService.saveContent(DEFAULT_CONTENT);
contents = boardService.fetchContents();
}
@Test
public void 캐시1() {
contents = boardService.fetchContents();
}
@Test
public void 캐시2() {
contents = boardService.fetchContents();
}
@Test
public void 캐시3() {
boardService.saveContent("캐시3");
contents = boardService.fetchContents();
}
@Test
public void 캐시4() {
contents = boardService.fetchContents();
}
}