こんな感じならJSONから精度の高いDouble値が取得できるみたい。 JsonPath.getDouble truncates or rounds output · Issue #797 · rest-assured/rest-assured https://github.com/rest-assured/rest-assured/issues/797 import io.restassured.path.json.config.JsonPathConfig; JsonPathConfig cfg = new JsonPathConfig(JsonPathConfig.NumberReturnType.BIG_DECIMAL); BigDecimal bigDecimal = given()........extract().jsonPath().using(cfg).get("name"); Double myDouble = bigDecimal.doubleValue();
[Mastodon] 2025-05-27 19:19:27
|