Back to project page couchbase-lite-android.
The source code is released under:
Apache License
If you think the Android project couchbase-lite-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.couchbase.lite.mockserver; /* w w w . j a v a 2 s. c om*/ import com.squareup.okhttp.mockwebserver.MockResponse; public class MockSessionGet { public MockResponse generateMockResponse() { MockResponse mockResponse = new MockResponse(); String jsonBody = "{\n" + " \"authentication_handlers\":[\n" + " \"default\",\n" + " \"cookie\"\n" + " ],\n" + " \"ok\":true,\n" + " \"userCtx\":{\n" + " \"channels\":{\n" + " \"*\":1\n" + " },\n" + " \"name\":null\n" + " }\n" + "}"; mockResponse.setBody(jsonBody); MockHelper.set200OKJson(mockResponse); return mockResponse; } }