Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions src/test/java/subway/RestAssuredTest.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
package subway;

import io.restassured.response.ExtractableResponse;
import io.restassured.response.Response;
import io.restassured.RestAssured;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.HttpStatus;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;

import static org.assertj.core.api.Assertions.assertThat;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
public class RestAssuredTest {

@DisplayName("구글 페이지 접근 테스트")
@Test
void accessGoogle() {
// TODO: 구글 페이지 요청 구현
ExtractableResponse<Response> response = null;

assertThat(response.statusCode()).isEqualTo(HttpStatus.OK.value());
}
}
@DisplayName("구글 페이지 접근 테스트")
@Test
void accessGoogle() {
RestAssured.given().when().get("https://google.com").then().statusCode(200);
}
}