junit
-
4. SpringBoot + JPA + H2 databaseProject/React+Java 2022. 7. 21. 18:54
https://github.com/dchkang83/project-board GitHub - dchkang83/project-board Contribute to dchkang83/project-board development by creating an account on GitHub. github.com 1. H2 - 의존성 추가 testImplementation group: 'com.h2database', name: 'h2', version: '2.1.214' 2. H2 - apllication.yml spring: datasource: driver-class-name: org.h2.Driver url: jdbc:h2:mem:test username: sa password: 3. JPA - 의존성 추가..
-
2. SpringBoot + Controller TestCase 설정 확인Project/React+Java 2022. 7. 21. 16:17
https://github.com/dchkang83/project-board GitHub - dchkang83/project-board Contribute to dchkang83/project-board development by creating an account on GitHub. github.com 1. lombok 의존성 추가 # /project-board/back-end/gundam/build.gradle compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' lombok dependency 설정 후 library reload 2. SampleTests.java 작성 package com.main...
-
IntelliJ + Gradle + Lombok + 테스트코드Tool/IntelliJ 2021. 4. 8. 15:58
안녕하세요, 건담아빠입니다. 이번 포스팅은 Lombok 라이브러리 설정입니다. 1. InterlliJ Lombok Plugins - File > Settings (Ctrl+Alt+S) > Plugins > "lombok" 검색 > Install > 재시작? (이미 설치되어 있어서 재시작 안함) 2. gradle 의존성 추가 - build.gradle implementation('org.projectlombok:lombok') 4. DTO 및 테스트 코드 작성 - dto 생성 package dto; import lombok.Getter; import lombok.RequiredArgsConstructor; @Getter @RequiredArgsConstructor public class HelloDto {..