package dev.sonpx.loyalty.mcp.config;

import org.junit.jupiter.api.Test;
import org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerSseProperties;

import java.time.Duration;

import static org.assertj.core.api.Assertions.assertThat;

class McpServerKeepAliveTest {

    @Test
    void testKeepAlivePropertiesSetting() {
        McpServerSseProperties properties = new McpServerSseProperties();
        properties.setKeepAliveInterval(Duration.ofSeconds(30));

        assertThat(properties.getKeepAliveInterval()).isEqualTo(Duration.ofSeconds(30));
    }
}
