Search in sources :

Example 1 with DefaultAbilityCreateRequest

use of wooteco.prolog.report.application.dto.ability.DefaultAbilityCreateRequest in project prolog by woowacourse.

the class AbilityDocumentation method 프론트엔드_기본_역량을_등록한다.

@Test
void 프론트엔드_기본_역량을_등록한다() {
    // given
    기본_역량을_생성한다(new DefaultAbilityCreateRequest("JavaScript", "JavaScript 입니다.", "#222222", "fe"));
    // when
    ExtractableResponse<Response> response = given("abilities/create-template-fe").header(AUTHORIZATION, "Bearer " + accessToken).when().post("/abilities/template/fe").then().log().all().extract();
    // then
    assertThat(response.statusCode()).isEqualTo(OK.value());
}
Also used : TokenResponse(wooteco.prolog.login.application.dto.TokenResponse) AbilityResponse(wooteco.prolog.report.application.dto.ability.AbilityResponse) ExtractableResponse(io.restassured.response.ExtractableResponse) MemberResponse(wooteco.prolog.member.application.dto.MemberResponse) Response(io.restassured.response.Response) DefaultAbilityCreateRequest(wooteco.prolog.report.application.dto.ability.DefaultAbilityCreateRequest) Test(org.junit.jupiter.api.Test)

Example 2 with DefaultAbilityCreateRequest

use of wooteco.prolog.report.application.dto.ability.DefaultAbilityCreateRequest in project prolog by woowacourse.

the class AbilityDocumentation method 백엔드_기본_역량을_등록한다.

@Test
void 백엔드_기본_역량을_등록한다() {
    // given
    기본_역량을_생성한다(new DefaultAbilityCreateRequest("Java", "Java 입니다.", "#111111", "be"));
    // when
    ExtractableResponse<Response> response = given("abilities/create-template-be").header(AUTHORIZATION, "Bearer " + accessToken).when().post("/abilities/template/be").then().log().all().extract();
    // then
    assertThat(response.statusCode()).isEqualTo(OK.value());
}
Also used : TokenResponse(wooteco.prolog.login.application.dto.TokenResponse) AbilityResponse(wooteco.prolog.report.application.dto.ability.AbilityResponse) ExtractableResponse(io.restassured.response.ExtractableResponse) MemberResponse(wooteco.prolog.member.application.dto.MemberResponse) Response(io.restassured.response.Response) DefaultAbilityCreateRequest(wooteco.prolog.report.application.dto.ability.DefaultAbilityCreateRequest) Test(org.junit.jupiter.api.Test)

Aggregations

ExtractableResponse (io.restassured.response.ExtractableResponse)2 Response (io.restassured.response.Response)2 Test (org.junit.jupiter.api.Test)2 TokenResponse (wooteco.prolog.login.application.dto.TokenResponse)2 MemberResponse (wooteco.prolog.member.application.dto.MemberResponse)2 AbilityResponse (wooteco.prolog.report.application.dto.ability.AbilityResponse)2 DefaultAbilityCreateRequest (wooteco.prolog.report.application.dto.ability.DefaultAbilityCreateRequest)2