Search in sources :

Example 1 with AutoRestLongRunningOperationTestServiceImpl

use of fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl in project autorest.java by Azure.

the class LRORetrysTests method setup.

@BeforeClass
public static void setup() {
    client = new AutoRestLongRunningOperationTestServiceImpl("http://localhost:3000", new BasicAuthenticationCredentials(null, null));
    client.getAzureClient().setLongRunningOperationRetryTimeout(0);
}
Also used : BasicAuthenticationCredentials(com.microsoft.rest.credentials.BasicAuthenticationCredentials) AutoRestLongRunningOperationTestServiceImpl(fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl) BeforeClass(org.junit.BeforeClass)

Example 2 with AutoRestLongRunningOperationTestServiceImpl

use of fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl in project autorest.java by Azure.

the class LROsCustomHeaderTests method setup.

@BeforeClass
public static void setup() {
    client = new AutoRestLongRunningOperationTestServiceImpl("http://localhost:3000", new BasicAuthenticationCredentials(null, null));
    client.restClient().headers().addHeader("x-ms-client-request-id", "9C4D50EE-2D56-4CD3-8152-34347DC9F2B0");
    client.getAzureClient().setLongRunningOperationRetryTimeout(0);
}
Also used : BasicAuthenticationCredentials(com.microsoft.rest.credentials.BasicAuthenticationCredentials) AutoRestLongRunningOperationTestServiceImpl(fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl) BeforeClass(org.junit.BeforeClass)

Example 3 with AutoRestLongRunningOperationTestServiceImpl

use of fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl in project autorest.java by Azure.

the class LROSADsTests method setup.

@BeforeClass
public static void setup() {
    client = new AutoRestLongRunningOperationTestServiceImpl("http://localhost:3000", new BasicAuthenticationCredentials(null, null));
    client.getAzureClient().setLongRunningOperationRetryTimeout(0);
}
Also used : BasicAuthenticationCredentials(com.microsoft.rest.credentials.BasicAuthenticationCredentials) AutoRestLongRunningOperationTestServiceImpl(fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl) BeforeClass(org.junit.BeforeClass)

Example 4 with AutoRestLongRunningOperationTestServiceImpl

use of fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl in project autorest.java by Azure.

the class LROsTests method setup.

@BeforeClass
public static void setup() {
    RestClient restClient = new RestClient.Builder().withBaseUrl("http://localhost:3000").withSerializerAdapter(new AzureJacksonAdapter()).withResponseBuilderFactory(new AzureResponseBuilder.Factory()).build();
    client = new AutoRestLongRunningOperationTestServiceImpl(restClient);
    client.getAzureClient().setLongRunningOperationRetryTimeout(0);
}
Also used : AzureResponseBuilder(com.microsoft.azure.AzureResponseBuilder) AzureJacksonAdapter(com.microsoft.azure.serializer.AzureJacksonAdapter) RestClient(com.microsoft.rest.RestClient) AutoRestLongRunningOperationTestServiceImpl(fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl) BeforeClass(org.junit.BeforeClass)

Aggregations

AutoRestLongRunningOperationTestServiceImpl (fixtures.lro.implementation.AutoRestLongRunningOperationTestServiceImpl)4 BeforeClass (org.junit.BeforeClass)4 BasicAuthenticationCredentials (com.microsoft.rest.credentials.BasicAuthenticationCredentials)3 AzureResponseBuilder (com.microsoft.azure.AzureResponseBuilder)1 AzureJacksonAdapter (com.microsoft.azure.serializer.AzureJacksonAdapter)1 RestClient (com.microsoft.rest.RestClient)1