forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#204 from RikkiGibson/v2
OkHttpClient, RxNettyClient -> OkHttpAdapter, RxNettyAdapter
- Loading branch information
Showing
6 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
client-runtime/src/test/java/com/microsoft/rest/v2/RestProxyWithOkHttpTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package com.microsoft.rest.v2; | ||
|
||
import com.microsoft.rest.v2.http.HttpClient; | ||
import com.microsoft.rest.v2.http.OkHttpClient; | ||
import com.microsoft.rest.v2.http.OkHttpAdapter; | ||
|
||
public class RestProxyWithOkHttpTests extends RestProxyTests { | ||
@Override | ||
protected HttpClient createHttpClient() { | ||
final okhttp3.OkHttpClient.Builder okHttpClientBuilder = new okhttp3.OkHttpClient.Builder(); | ||
final okhttp3.OkHttpClient innerHttpClient = okHttpClientBuilder.build(); | ||
return new OkHttpClient(innerHttpClient); | ||
return new OkHttpAdapter(innerHttpClient); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
client-runtime/src/test/java/com/microsoft/rest/v2/RestProxyWithRxNettyTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package com.microsoft.rest.v2; | ||
|
||
import com.microsoft.rest.v2.http.HttpClient; | ||
import com.microsoft.rest.v2.http.RxNettyClient; | ||
import com.microsoft.rest.v2.http.RxNettyAdapter; | ||
|
||
public class RestProxyWithRxNettyTests extends RestProxyTests { | ||
@Override | ||
protected HttpClient createHttpClient() { | ||
return new RxNettyClient(); | ||
return new RxNettyAdapter(); | ||
} | ||
} |