Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/anew/test taxi driver info #110

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
update: taxiDriverFixture의 자료형을 String에서 ExtractableResponse<Response…
…>로 변경
Yoojin-An committed Oct 29, 2023
commit 692354332b38d4e8556e742178d45169050299f6
Original file line number Diff line number Diff line change
@@ -67,8 +67,9 @@ class TaxiDriverAcceptanceTest(
address = address,
img = "1111"
)
val securityId = taxiDriver.jsonPath().getString("securityId")

Assertions.assertThat(taxiDriver).isEqualTo("test")
Assertions.assertThat(securityId).isEqualTo("test")
}

}
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@ import com.hh2.katj.util.model.Gender
import com.hh2.katj.util.model.RoadAddress
import io.restassured.RestAssured.given
import io.restassured.http.ContentType
import io.restassured.response.ExtractableResponse
import io.restassured.response.Response
import java.time.LocalDate

class TaxiDriverFixtures {
@@ -18,7 +20,7 @@ class TaxiDriverFixtures {
status: TaxiDriverStatus,
gender: Gender,
address: RoadAddress,
img: String): String {
img: String): ExtractableResponse<Response> {
val params: MutableMap<String, Any> = mutableMapOf()

params.put("taxi", taxi.toString())
@@ -36,7 +38,7 @@ class TaxiDriverFixtures {
.`when`()
.post("/taxidriver/enroll")
.then().log().all()
.extract().jsonPath().getString("securityId")
.extract()
}
}
}