use of fixtures.azurespecials.implementation.AutoRestAzureSpecialParametersTestClientImpl in project autorest.java by Azure.
the class XMsClientRequestIdTests method setup.
@BeforeClass
public static void setup() {
client = new AutoRestAzureSpecialParametersTestClientImpl("http://localhost.:3000", new TokenCredentials(null, UUID.randomUUID().toString()));
client.withSubscriptionId("1234-5678-9012-3456");
}
use of fixtures.azurespecials.implementation.AutoRestAzureSpecialParametersTestClientImpl in project autorest.java by Azure.
the class SubscriptionInMethodTests method setup.
@BeforeClass
public static void setup() {
RestClient restClient = new RestClient.Builder().withBaseUrl("http://localhost:3000").withSerializerAdapter(new AzureJacksonAdapter()).withResponseBuilderFactory(new AzureResponseBuilder.Factory()).withCredentials(new TokenCredentials(null, UUID.randomUUID().toString())).withInterceptor(new RequestIdHeaderInterceptor()).build();
client = new AutoRestAzureSpecialParametersTestClientImpl(restClient);
client.withSubscriptionId("1234-5678-9012-3456");
}
use of fixtures.azurespecials.implementation.AutoRestAzureSpecialParametersTestClientImpl in project autorest.java by Azure.
the class SubscriptionInCredentialsTests method setup.
@BeforeClass
public static void setup() {
RestClient restClient = new RestClient.Builder().withBaseUrl("http://localhost:3000").withCredentials(new TokenCredentials(null, UUID.randomUUID().toString())).withSerializerAdapter(new AzureJacksonAdapter()).withResponseBuilderFactory(new AzureResponseBuilder.Factory()).withInterceptor(new RequestIdHeaderInterceptor()).build();
client = new AutoRestAzureSpecialParametersTestClientImpl(restClient);
client.withSubscriptionId("1234-5678-9012-3456");
}
Aggregations