-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
720 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,76 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.springframework.boot' version '3.1.4' | ||
id 'io.spring.dependency-management' version '1.1.3' | ||
id 'java' | ||
id 'org.springframework.boot' version '3.1.4' | ||
id 'io.spring.dependency-management' version '1.1.3' | ||
} | ||
|
||
group = 'com' | ||
version = '0.0.1-SNAPSHOT' | ||
|
||
java { | ||
sourceCompatibility = '17' | ||
sourceCompatibility = '17' | ||
} | ||
|
||
configurations { | ||
compileOnly { | ||
extendsFrom annotationProcessor | ||
} | ||
compileOnly { | ||
extendsFrom annotationProcessor | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' | ||
implementation 'org.springframework.boot:spring-boot-starter-amqp' | ||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
implementation 'org.springframework.boot:spring-boot-starter-data-redis' | ||
implementation 'org.springframework.boot:spring-boot-starter-security' | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation 'org.springframework.boot:spring-boot-starter-webflux' | ||
implementation 'org.springframework.boot:spring-boot-starter-validation' | ||
compileOnly 'org.projectlombok:lombok' | ||
runtimeOnly 'com.mysql:mysql-connector-j' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
testImplementation 'io.projectreactor:reactor-test' | ||
testImplementation 'org.springframework.amqp:spring-rabbit-test' | ||
testImplementation 'org.springframework.security:spring-security-test' | ||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
implementation 'org.springframework.boot:spring-boot-starter-data-redis' | ||
implementation 'org.springframework.boot:spring-boot-starter-security' | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation 'org.springframework.boot:spring-boot-starter-webflux' | ||
implementation 'org.springframework.boot:spring-boot-starter-validation' | ||
compileOnly 'org.projectlombok:lombok' | ||
runtimeOnly 'com.mysql:mysql-connector-j' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
testImplementation 'io.projectreactor:reactor-test' | ||
testImplementation 'org.springframework.amqp:spring-rabbit-test' | ||
testImplementation 'org.springframework.security:spring-security-test' | ||
testCompileOnly 'org.springframework.security:spring-security-test' | ||
testAnnotationProcessor 'org.springframework.security:spring-security-test' | ||
|
||
// https://mvnrepository.com/artifact/com.slack.api/slack-api-client | ||
// 슬랙 api 추가 | ||
implementation group: 'com.slack.api', name: 'slack-api-client', version: '1.29.2' | ||
|
||
// https://mvnrepository.com/artifact/com.slack.api/slack-api-client | ||
// 슬랙 api 추가 | ||
implementation group: 'com.slack.api', name: 'slack-api-client', version: '1.29.2' | ||
|
||
implementation 'io.jsonwebtoken:jjwt-api:0.11.5' | ||
implementation 'io.jsonwebtoken:jjwt-impl:0.11.5' | ||
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.5' | ||
//jwt 추가 | ||
|
||
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui | ||
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0' | ||
//swagger 추가 | ||
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui | ||
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0' | ||
//swagger 추가 | ||
|
||
// Spring boot 3.x이상에서 QueryDsl 패키지를 정의하는 방법 | ||
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' | ||
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta" | ||
annotationProcessor "jakarta.annotation:jakarta.annotation-api" | ||
annotationProcessor "jakarta.persistence:jakarta.persistence-api" | ||
// Spring boot 3.x이상에서 QueryDsl 패키지를 정의하는 방법 | ||
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta' | ||
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta" | ||
annotationProcessor "jakarta.annotation:jakarta.annotation-api" | ||
annotationProcessor "jakarta.persistence:jakarta.persistence-api" | ||
|
||
// aws s3 | ||
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' | ||
// aws s3 | ||
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' | ||
|
||
// https://mvnrepository.com/artifact/org.mockito/mockito-core | ||
testImplementation 'org.mockito:mockito-core:5.6.0' | ||
testImplementation 'org.mockito:mockito-core:5.6.0' | ||
|
||
} | ||
|
||
tasks.named('test') { | ||
useJUnitPlatform() | ||
useJUnitPlatform() | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.postgraduate; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.test.web.servlet.MockMvc; | ||
import org.springframework.test.web.servlet.setup.MockMvcBuilders; | ||
import org.springframework.transaction.annotation.Transactional; | ||
import org.springframework.web.context.WebApplicationContext; | ||
|
||
import static org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers.springSecurity; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; | ||
|
||
@SpringBootTest | ||
@AutoConfigureMockMvc | ||
@Transactional | ||
@Disabled | ||
public class IntegrationTest { | ||
|
||
@Autowired | ||
protected MockMvc mvc; | ||
@Autowired | ||
private WebApplicationContext ctx; | ||
|
||
@BeforeEach | ||
void setUp() { | ||
mvc = MockMvcBuilders | ||
.webAppContextSetup(ctx) | ||
.apply(springSecurity()) | ||
.alwaysExpect(status().isOk()) | ||
.alwaysExpect(content().contentType(MediaType.APPLICATION_JSON)) | ||
.build(); | ||
} | ||
} |
Oops, something went wrong.