일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- AbsDistinct java
- Collectors.toMap
- mkdir
- mkdirs
- collect
- flow chart
- java
- ElasticSearch
- analyze api
- 코딩테스트
- 카드모으기 자바
- urllib3
- ES Query
- AbsDistinct
- 5amsung
- ELK
- codility
- high level client
- draw.io down
- low level client
- Elastic Stack
- elasticsearch java
- es test data
- es
- Draw.IO
- Warnings
- intervals
- java set
- https warning
- AbsDistinct 풀이
- Today
- Total
목록전체 글 (56)
5AMSUNG
ReflectionTestUtils?? ReflectionTestUtils 는 Spring Test Context 프레임워크의 일부입니다. 이는 단위에서 사용되는 리플렉션 기반 유틸리티 메서드의 모음이며, 비공개 필드를 설정하고 비공개 메서드를 호출하고 의존성을 주입하기 위한 통합 테스트 시나리오 import org.springframework.test.util.ReflectionTestUtils; @Test public void test_weightLogic_getPriceWeight(){ assertEquals( ReflectionTestUtils.invokeMethod( new Weight(), "getPriceWeight", 5600L), (Double)1.49); } @Test public vo..
한개의 컬럼에 UNIQUE 설정 @Column(name="column" , unique=true) long column 두 개 이상 컬럼을 묶어 UNIQUE 설정 @Table 속성 uniqueConstraints 사용 @Entity @Table( name="keywords", uniqueConstraints={ @UniqueConstraint( name={"contstraintName"} columnNames={"keyword", "use_yn"} ) } ) @Data public class Entity{ @Column(name="keyword") String keyword; @Column(name="use_yn") String use_yn; }