package com.yaoyicloud.ai.pipeline.fc;

import static org.junit.Assert.assertNotNull;

import java.util.List;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;

import com.aliyun.fc.runtime.Context;

@RunWith(MockitoJUnitRunner.class)
public class FakeResultGenerateHandlerTest {

    @Mock
    private Context context;

    private FakeResultGenerateHandler handler;

    @Before
    public void setUp() {
        handler = new FakeResultGenerateHandler();
    }

    @Test
    public void testHandleRequest() {
        TaskContentMsgs request = new TaskContentMsgs(
            List.of(new TaskContentMsgs.Message("appId1", "taskId1", "userId1", List.of("ossFile1", "ossFile2"))),
            "indexField");

        TaskContentMsgs response = handler.handleRequest(request, context);

        assertNotNull(response);
    }

}
