From: Benny Baumann Date: Mon, 27 Feb 2017 19:31:01 +0000 (+0100) Subject: Merge "upd: terminology in API" X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=5a1b7ee1d24604eaa2d0572f59555b5777e9c4eb;hp=248c19aee75f896005872549b65f17701ded1fd2 Merge "upd: terminology in API" --- diff --git a/src/club/wpia/gigi/api/FindAgent.java b/src/club/wpia/gigi/api/FindAgent.java index 9be80abb..5ebf15ab 100644 --- a/src/club/wpia/gigi/api/FindAgent.java +++ b/src/club/wpia/gigi/api/FindAgent.java @@ -88,7 +88,7 @@ public class FindAgent extends APIPoint { jw.key("id"); jw.value(u1.getId()); - jw.key("canAssure"); + jw.key("canVerify"); jw.value(u1.canVerify()); jw.key("name"); diff --git a/tests/club/wpia/gigi/api/TestFindAgent.java b/tests/club/wpia/gigi/api/TestFindAgent.java index cae8b812..b1bec53e 100644 --- a/tests/club/wpia/gigi/api/TestFindAgent.java +++ b/tests/club/wpia/gigi/api/TestFindAgent.java @@ -92,11 +92,11 @@ public class TestFindAgent extends RestrictedApiTest { JSONTokener jt = new JSONTokener(res); JSONObject j1 = new JSONObject(); j1.put("id", id); - j1.put("canAssure", true); + j1.put("canVerify", true); j1.put("name", u.getPreferredName().toAbbreviatedString()); JSONObject j2 = new JSONObject(); j2.put("id", u2); - j2.put("canAssure", false); + j2.put("canVerify", false); j2.put("name", User.getById(u2).getPreferredName().toAbbreviatedString()); JSONArray ja = new JSONArray(Arrays.asList(j1, j2)); assertEquals(ja.toString(), new JSONArray(jt).toString());