| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 |
| 30 |
- 파이썬
- License
- sort
- Elasticsearch
- high level client
- ELASTIC
- 900gle
- API
- plugin
- zip 암호화
- Python
- analyzer test
- docker
- token filter test
- query
- flask
- TensorFlow
- Kafka
- 차트
- Mac
- Test
- springboot
- Java
- licence delete curl
- license delete
- aggs
- zip 파일 암호화
- matplotlib
- MySQL
- aggregation
- Today
- Total
목록JAVA/test code (2)
개발잡부
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..
package com.bbongdoo.doo.keyword; import com.bbongdoo.doo.domain.Keywords; import com.bbongdoo.doo.domain.KeywordsRepository; import com.bbongdoo.doo.service.KeywordsService; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context..