package com.agent.management.rag.structured;
import com.agent.management.rag.model.RagQuery; import org.junit.jupiter.api.Test; import java.util.Map; import static org.assertj.core.api.Assertions.assertThat;
class ExplicitSqlGenerationServiceTest {@Test void readsExplicitSql(){RagQuery q=new RagQuery();q.setFilters(Map.of("sql","SELECT 1"));assertThat(new ExplicitSqlGenerationService().generateSql(q,1L)).contains("SELECT 1");}@Test void returnsEmptyWithoutSql(){assertThat(new ExplicitSqlGenerationService().generateSql(new RagQuery(),1L)).isEmpty();}}
