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

package com.azure.analytics.purview.workflow.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 WorkflowsListTests extends PurviewWorkflowClientTestBase {
    @Test
    @Disabled
    public void testWorkflowsListTests() {
        RequestOptions requestOptions = new RequestOptions();
        PagedIterable<BinaryData> response = purviewWorkflowClient.listWorkflows(requestOptions);
        Assertions.assertEquals(200, response.iterableByPage().iterator().next().getStatusCode());
        Assertions.assertEquals(
                BinaryData.fromString(
                                "{\"name\":\"Create glossary term\",\"description\":\"\",\"createdBy\":\"eece94d9-0619-4669-bb8a-d6ecec5220bc\",\"createdTime\":\"2023-01-11T10:14:45.485999448Z\",\"id\":\"773b326e-751c-4277-96a6-c4f522e9750f\",\"isEnabled\":true,\"lastUpdateTime\":\"2023-01-11T10:14:45.485999448Z\",\"triggers\":[{\"type\":\"when_term_creation_is_requested\"}],\"updatedBy\":\"eece94d9-0619-4669-bb8a-d6ecec5220bc\"}")
                        .toObject(Object.class),
                response.iterator().next().toObject(Object.class));
    }
}
