title: {{title}} version: 1.0.0 theme: dracula header: {{header}} footer: {{footer}} paginate: true marp: true size: 4K
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.junit.Rule; | |
| import org.junit.Test; | |
| import org.springframework.boot.test.rule.OutputCapture; | |
| import static org.hamcrest.Matchers.containsString; | |
| public class OutputCaptureTest { | |
| @Rule | |
| public OutputCapture output = new OutputCapture(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.github.tomakehurst.wiremock.WireMockServer; | |
| import com.kakaobank.codingtest.infrastructure.rest.feign.kakao.KakaoOpenApiClient; | |
| import com.kakaobank.codingtest.infrastructure.rest.feign.kakao.KakaoOpenApiRequestInterceptor; | |
| import com.kakaobank.codingtest.infrastructure.rest.feign.kakao.KakaoPlaceResultDTO; | |
| import com.kakaobank.codingtest.infrastructure.rest.feign.kakao.KakaoPlaceResultDTO.DocumentDTO; | |
| import feign.Contract; | |
| import feign.Feign; | |
| import feign.codec.Decoder; | |
| import feign.codec.Encoder; | |
| import feign.httpclient.ApacheHttpClient; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package vine.mb.api.member.v1; | |
| import io.restassured.specification.RequestSpecification; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.boot.test.context.SpringBootTest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var pattern = Pattern.compile("\\p{IsHangul}"); | |
| var result = Stream.of("ㄱ-ㅎ", "ㅏ-ㅢ", "한글") | |
| .allMatch(hangul -> pattern.matcher(hangul).find()); | |
| assertTrue(result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RunWith(SpringRunner.class) | |
| @SpringBootTest( | |
| properties = { | |
| "property.value=propertyTest", | |
| "value=test" | |
| }, | |
| classes = {TestApplication.class}, | |
| webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT | |
| ) | |
| public class TestApplicationTests { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sql.sed ─╯ | |
| s/^.*rest"://g | |
| /jobScheduler/d | |
| s/\\[n|t]/ /g | |
| /baseParms: null/d | |
| /parmsList: null"/d | |
| /parmsList: \[\]/d | |
| s/"//g | |
| s/ queryID/queryID/g | |
| s/Query: //g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring: | |
| profiles: local | |
| datasource: | |
| platform: h2 | |
| url: jdbc:h2:tcp://localhost:9092/mem:testdb;MVCC=TRUE | |
| username: sa | |
| password: | |
| driver-class-name: org.h2.Driver | |
| jpa: | |
| database-platform: H2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git grep으로 파일 내용 검색하기 | |
| git grep -l Annotation.*ApplicationContext | |
| git grep -E Annotation.*ApplicationContext develop spring-framework-reference | |
| # git 로그 검색하기 | |
| git log —grep 8장 // 커밋 메시지 검색 | |
| git log -Gwebsocket // 변경 사항에 websocket이 포함된 커밋 조회 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 배너 조회 | |
| GRAPHQL http://localhost:8080/api/graphql | |
| Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTQyMjYyMjQsImlhdCI6MTY5Mzc5NDIyNCwiaXNzIjoiZGV2LWt0b3duNHUuY29tIiwidWlkIjoia3VZQTk0NWU1MFRPWjczSndaeHBQSXRLOGJoblpPd2Z4dVRaZ3V2YVNwQmFXcHRtd3J3SmpkdytHN3dLOUpKNiIsInJvbGVzIjpbIlJPTEVfQURNSU4iLCJST0xFX01BTkFHRVIiLCJNYWxsIE1hc3RlcnMiLCJST0xFX0RFVkVMT1BFUiJdfQ.m7B3plrw0NLWJ6dzvjlrtXZ1EP234xMUS_mmTXf6S-Q | |
| query banners($request: BannerRequest!) { | |
| banners(request: $request) { | |
| banners { | |
| bannerNo | |
| shopNo | |
| bizNo |