// File generated from our OpenAPI spec by Stainless.

package com.openai.models

import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

class VectorStoreFileBatchTest {

    @Test
    fun createVectorStoreFileBatch() {
        val vectorStoreFileBatch =
            VectorStoreFileBatch.builder()
                .id("id")
                .createdAt(0L)
                .fileCounts(
                    VectorStoreFileBatch.FileCounts.builder()
                        .cancelled(0L)
                        .completed(0L)
                        .failed(0L)
                        .inProgress(0L)
                        .total(0L)
                        .build()
                )
                .object_(VectorStoreFileBatch.Object.VECTOR_STORE_FILES_BATCH)
                .status(VectorStoreFileBatch.Status.IN_PROGRESS)
                .vectorStoreId("vector_store_id")
                .build()
        assertThat(vectorStoreFileBatch).isNotNull
        assertThat(vectorStoreFileBatch.id()).isEqualTo("id")
        assertThat(vectorStoreFileBatch.createdAt()).isEqualTo(0L)
        assertThat(vectorStoreFileBatch.fileCounts())
            .isEqualTo(
                VectorStoreFileBatch.FileCounts.builder()
                    .cancelled(0L)
                    .completed(0L)
                    .failed(0L)
                    .inProgress(0L)
                    .total(0L)
                    .build()
            )
        assertThat(vectorStoreFileBatch.object_())
            .isEqualTo(VectorStoreFileBatch.Object.VECTOR_STORE_FILES_BATCH)
        assertThat(vectorStoreFileBatch.status()).isEqualTo(VectorStoreFileBatch.Status.IN_PROGRESS)
        assertThat(vectorStoreFileBatch.vectorStoreId()).isEqualTo("vector_store_id")
    }
}
