Skip to Content
쿼커스 쿡북: 쿠버네티스를 위한 네이티브 자바 솔루션
book

쿼커스 쿡북: 쿠버네티스를 위한 네이티브 자바 솔루션

by 유동환, 알렉스 소토 부에노, 제이슨 포터
April 2021
Beginner to intermediate
460 pages
10h 49m
Korean
Hanbit Media, Inc.
Content preview from 쿼커스 쿡북: 쿠버네티스를 위한 네이티브 자바 솔루션
178
쿼커스 쿡북
NOTE
_
stream
메서드는 올바르게 동작하기 위해 트랜잭션을 필요로 합니다.
함께 보기
자세한 내용은 다음 웹페이지에서 확인하세요.
●
io.quarkus : PanacheEntityBase
클래스 (
https ://oreil.ly/OW2fV
)
7.18
파나쉬 엔티티 테스트하기
문제
내장 데이터베이스로 테스트하기
해결
쿼커스는
H2
와 더비
Derby
라는 메모리 기반
in
-
memory
데이터베이스를 위한 도우미를 제공
하며 별도의 프로세스로 데이터베이스를 적절하게 부팅할 수 있습니다.
먼저
io.quarkus:quarkus-test-h2:1.4.1.Final
혹은
the io.quarkus:quarkus-test-
derby:1.4.1.Final
바이너리를 빌드에 포함시킵니다.
다음은
@Quarkus TestResource (H2DatabaseTestResource.class )
혹은
@QuarkusTestRe
source (DerbyDatabaseTestResource.class )
애너테이션을 테스트 코드에 붙입니다. 마지
막으로
src/test/resources/META-INF/application.properties
에서 선택한 데이터베이
스에 맞는 데이터베이스
URL
과 드라이버 정보를 넣습니다.
다음은
H2
의 예입니다.
package ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀
쿠버네티스를 활용한 클라우드 네이티브 데브옵스

쿠버네티스를 활용한 클라우드 네이티브 데브옵스

최경현, 저스틴 도밍거스, 존 어런들

Publisher Resources

ISBN: 9791162244203