]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/api/TestFindAgent.java
add: Allow multiple names, name-schemes, multi-name-assurance, etc.
[gigi.git] / tests / org / cacert / gigi / api / TestFindAgent.java
index e889f1e838210ac2ea61c54f65f579fda30da4bd..3b8b9927e912107851c71d21765f17e79dad72d0 100644 (file)
@@ -82,6 +82,6 @@ public class TestFindAgent extends RestrictedApiTest {
         grant(email, Group.LOCATE_AGENT);
         grant(User.getById(u2).getEmail(), Group.LOCATE_AGENT);
         res = IOUtils.readURL(doApi(FindAgent.PATH_INFO, "id=" + id + "&id=" + u2)).replace("\r", "");
-        assertEquals(id + ",true," + u.getName().toString() + "\n" + u2 + ",false," + User.getById(u2).getName().toString() + "\n", res);
+        assertEquals(id + ",true," + u.getPreferredName().toAbbreviatedString() + "\n" + u2 + ",false," + User.getById(u2).getPreferredName().toAbbreviatedString() + "\n", res);
     }
 }