luke0408 / Practical_Spring_Testing

[인프런] Practical Testing: 실용적인 테스트 가이드 - 실습
0 stars 0 forks source link

Section 05 - Spring & JPA 기반 테스트 #4

Open luke0408 opened 1 year ago

luke0408 commented 1 year ago
luke0408 commented 10 months ago

Layerd Architecture

Layer의 분리 이유 : 관심사를 분리하기 위함 3 티어 vs 4 티어

luke0408 commented 10 months ago

Spring / JPA 흝어보기 & 기본 엔티티 설계

전반적인 Spring과 JPA 간단하게 흝어보기 (추가적으로 정리 필요)

Library vs. Framework

Spring

JPA와 ORM



엔티티 설계 with JPA

자세한 내용은 이전 스터디에서 정리했음 링크 : 자바 ORM 표준 JPA 프로그래밍 - 기본편 스터디

luke0408 commented 7 months ago

Presentation Layer Test

Presentation Layer

  1. 외부 세계의 요청을 가장 먼저 받는 계층
  2. 파라미터에 대한 최소한의 검증을 진행

image

Mock & MockMVC

Transactional(readOnly = true)

readOnly 이름 그대로 읽기 전용 트랜젝션을 오픈한다.

[특징]