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());
}
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());
}
Aggregations