// File generated from our OpenAPI spec by Stainless.

package com.openai.models

import kotlin.test.assertNotNull
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

class BetaVectorStoreFileBatchCreateParamsTest {

    @Test
    fun create() {
        BetaVectorStoreFileBatchCreateParams.builder()
            .vectorStoreId("vs_abc123")
            .addFileId("string")
            .chunkingStrategy(AutoFileChunkingStrategyParam.builder().build())
            .build()
    }

    @Test
    fun body() {
        val params =
            BetaVectorStoreFileBatchCreateParams.builder()
                .vectorStoreId("vs_abc123")
                .addFileId("string")
                .chunkingStrategy(AutoFileChunkingStrategyParam.builder().build())
                .build()

        val body = params._body()

        assertNotNull(body)
        assertThat(body.fileIds()).isEqualTo(listOf("string"))
        assertThat(body.chunkingStrategy())
            .contains(
                FileChunkingStrategyParam.ofAuto(AutoFileChunkingStrategyParam.builder().build())
            )
    }

    @Test
    fun bodyWithoutOptionalFields() {
        val params =
            BetaVectorStoreFileBatchCreateParams.builder()
                .vectorStoreId("vs_abc123")
                .addFileId("string")
                .build()

        val body = params._body()

        assertNotNull(body)
        assertThat(body.fileIds()).isEqualTo(listOf("string"))
    }

    @Test
    fun getPathParam() {
        val params =
            BetaVectorStoreFileBatchCreateParams.builder()
                .vectorStoreId("vs_abc123")
                .addFileId("string")
                .build()
        assertThat(params).isNotNull
        // path param "vectorStoreId"
        assertThat(params.getPathParam(0)).isEqualTo("vs_abc123")
        // out-of-bound path param
        assertThat(params.getPathParam(1)).isEqualTo("")
    }
}
