use of edu.uiuc.ncsa.security.delegation.server.storage.impl.ClientMemoryStore in project OA4MP by ncsa.
the class ClientManagerTest method testClient.
@Test
public void testClient() throws Exception {
ClientProvider clientProvider = new ClientProvider(new OA4MPIdentifierProvider(OA4MPIdentifierProvider.CLIENT_ID));
ClientMemoryStore store = new ClientMemoryStore(clientProvider);
ClientConverter converter = new ClientConverter(clientProvider);
Client c = getClient(store);
JSONObject j = new JSONObject();
converter.toJSON(c, j);
Client c2 = converter.fromJSON(j);
assert c2.equals(c);
}
Aggregations