Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- db
- 스프링 핵심 기능
- 그리디
- Greedy
- 스프링 핵심 원리
- 백준
- jpa
- JPQL
- spring
- java
- 스프링
- 김영한
- Servlet
- Thymeleaf
- 인프런
- Spring Boot
- Proxy
- Exception
- SpringBoot
- 자바
- transaction
- 알고리즘
- QueryDSL
- AOP
- pointcut
- http
- JDBC
- Android
- springdatajpa
- kotlin
Archives
- Today
- Total
목록테스트 환경 격리 (1)
개발자되기 프로젝트
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/m6t98/btrbrVfL8yQ/1e41z8hT7b17YPWukTPhj0/img.png)
1. 테스트 요구사항 회원가입을 성공한다 회원가입할 대 같은 이름이 있으면 예외발생! 2. 회원 가입 테스트 @SpringBootTest, @RunWith --> Springboot띄우기 위해 필요(Junit4 기준) @Transactional : 반복적이고 독립적인 test를 위해 rollback @SpringBootTest @RunWith(SpringRunner.class) @Transactional //rollback public class MemberServiceTest { @Autowired MemberService memberService; @Autowired MemberRepository memberRepository; @Test public void 회원가입() throws Exceptio..
인프런/[인프런] Springboot와 JPA활용 1
2021. 8. 6. 02:21