use of com.azure.android.core.test.http.NoOpHttpClient in project azure-sdk-for-android by Azure.
the class ChatThreadAsyncClientTest method setupMockTest.
private void setupMockTest() {
final NoOpHttpClient httpClient = new NoOpHttpClient() {
@Override
public void send(HttpRequest httpRequest, CancellationToken cancellationToken, HttpCallback httpCallback) {
httpCallback.onSuccess(ChatResponseMocker.createReadReceiptsResponse(httpRequest));
}
};
this.client = getChatClientBuilder(httpClient).buildAsyncClient();
String mockThreadId = "19:4b72178530934b7790135dd9359205e0@thread.v2";
this.chatThreadClient = client.getChatThreadClient(mockThreadId);
this.threadId = chatThreadClient.getChatThreadId();
}
Aggregations