Search in sources :

Example 1 with AutoRestParameterizedCustomHostTestClientImpl

use of fixtures.custombaseurimoreoptions.implementation.AutoRestParameterizedCustomHostTestClientImpl in project autorest.java by Azure.

the class CustomBaseUriMoreOptionsTests method setup.

@BeforeClass
public static void setup() {
    OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder().addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY));
    client = new AutoRestParameterizedCustomHostTestClientImpl(clientBuilder, new Retrofit.Builder());
    client.withSubscriptionId("test12");
}
Also used : OkHttpClient(okhttp3.OkHttpClient) AutoRestParameterizedCustomHostTestClientImpl(fixtures.custombaseurimoreoptions.implementation.AutoRestParameterizedCustomHostTestClientImpl) HttpLoggingInterceptor(okhttp3.logging.HttpLoggingInterceptor) BeforeClass(org.junit.BeforeClass)

Aggregations

AutoRestParameterizedCustomHostTestClientImpl (fixtures.custombaseurimoreoptions.implementation.AutoRestParameterizedCustomHostTestClientImpl)1 OkHttpClient (okhttp3.OkHttpClient)1 HttpLoggingInterceptor (okhttp3.logging.HttpLoggingInterceptor)1 BeforeClass (org.junit.BeforeClass)1