From cf4428db59b065c42c8a76883cf60f6b618aead8 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Mon, 27 Feb 2017 17:59:11 +0100 Subject: [PATCH] upd: terminology in API Change-Id: I6890eaf6fbbe3317a198ca5334afa92d8afa47e6 --- src/club/wpia/gigi/api/FindAgent.java | 2 +- tests/club/wpia/gigi/api/TestFindAgent.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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()); -- 2.39.2