// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.developer.devcenter.generated;

import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.RequestOptions;
import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public final class DevCenterListAllDevBoxesTests extends DevCenterClientTestBase {
    @Test
    @Disabled
    public void testDevCenterListAllDevBoxesTests() {
        RequestOptions requestOptions = new RequestOptions();
        PagedIterable<BinaryData> response = devCenterClient.listAllDevBoxes(requestOptions);
        Assertions.assertEquals(200, response.iterableByPage().iterator().next().getStatusCode());
        Assertions.assertEquals(
                BinaryData.fromString(
                                "{\"name\":\"MyDevBox\",\"hardwareProfile\":{\"memoryGB\":32,\"vCPUs\":8},\"hibernateSupport\":\"Enabled\",\"imageReference\":{\"name\":\"DevImage\",\"publishedDate\":\"2022-03-01T00:13:23.323Z\",\"version\":\"1.0.0\"},\"location\":\"centralus\",\"osType\":\"Windows\",\"poolName\":\"LargeDevWorkStationPool\",\"projectName\":\"ContosoProject\",\"provisioningState\":\"Succeeded\",\"storageProfile\":{\"osDisk\":{\"diskSizeGB\":1024}},\"user\":\"b08e39b4-2ac6-4465-a35e-48322efb0f98\"}")
                        .toObject(Object.class),
                response.iterator().next().toObject(Object.class));
    }
}
