package com.yaoyicloud.ai.pipeline.fc;

import static org.junit.Assert.assertNotNull;

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 EmailNotifyHandlerTest {

    @Mock
    private Context context;

    private EmailNotifyHandler handler;

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

    @Test
    public void testHandleRequest() {
        TestResult request = new TestResult(
            false, "standards", "results", "details");

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

        assertNotNull(response);
    }

}
