@Test public void testRevokeAsync() throws Exception { JSONObject mockResponse = new JSONObject(); ParseHttpClient restClient = ParseTestUtils.mockParseHttpClientWithResponse(mockResponse, 200, "OK"); NetworkSessionController controller = new NetworkSessionController(restClient); ParseTaskUtils.wait(controller.revokeAsync("sessionToken")); }
@Override public Task<Void> revokeAsync(String sessionToken) { return ParseRESTSessionCommand.revoke(sessionToken) .executeAsync(client) .makeVoid(); }
NetworkSessionController implements ParseSessionController { @Override public Task<Void> revokeAsync(String sessionToken) { return ParseRESTSessionCommand.revoke(sessionToken) .executeAsync(client) .makeVoid(); } }
NetworkSessionController implements ParseSessionController { @Override public Task<Void> revokeAsync(String sessionToken) { return ParseRESTSessionCommand.revoke(sessionToken) .executeAsync(client) .makeVoid(); } NetworkSessionController(ParseHttpClient client); }
NetworkSessionController implements ParseSessionController { @Override public Task<Void> revokeAsync(String sessionToken) { return ParseRESTSessionCommand.revoke(sessionToken) .executeAsync(client) .makeVoid(); } NetworkSessionController(ParseHttpClient client); @Override Task<ParseObject.State> getSessionAsync(String sessionToken); @Override Task<Void> revokeAsync(String sessionToken); @Override Task<ParseObject.State> upgradeToRevocable(String sessionToken); }
NetworkSessionController implements ParseSessionController { @Override public Task<Void> revokeAsync(String sessionToken) { return ParseRESTSessionCommand.revoke(sessionToken) .executeAsync(client) .makeVoid(); } NetworkSessionController(ParseHttpClient client); @Override Task<ParseObject.State> getSessionAsync(String sessionToken); @Override Task<Void> revokeAsync(String sessionToken); @Override Task<ParseObject.State> upgradeToRevocable(String sessionToken);  }