MCPcopy Create free account
hub / github.com/castello/spring_basic / init

Method init

ch4/UserDaoImplTest.java:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 Calendar cal;
21
22 @Before // 각 테스트가 수행되기 직전에 이 메서드가 실행된다.
23 public void init() {
24 cal = Calendar.getInstance();
25 cal.clear();
26 cal.set(2021, 1, 1);
27 }
28
29 @Test(expected = Exception.class) // 예외가 발생해야 테스트 통과
30 public void insertUser() throws Exception {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected