From 1c8208a756dbdcb96eb287a8aec04d1910a5fe51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Wed, 4 Sep 2024 20:38:42 -0600 Subject: [PATCH] Add missing test to generate compose file when spring-ai-vectordb-neo4j is selected See gh-1576 --- .../neo4j/Neo4jProjectGenerationConfigurationTests.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/start-site/src/test/java/io/spring/start/site/extension/dependency/neo4j/Neo4jProjectGenerationConfigurationTests.java b/start-site/src/test/java/io/spring/start/site/extension/dependency/neo4j/Neo4jProjectGenerationConfigurationTests.java index 33b1bbb9453..46891f3d4a8 100644 --- a/start-site/src/test/java/io/spring/start/site/extension/dependency/neo4j/Neo4jProjectGenerationConfigurationTests.java +++ b/start-site/src/test/java/io/spring/start/site/extension/dependency/neo4j/Neo4jProjectGenerationConfigurationTests.java @@ -45,4 +45,10 @@ void createsNeo4jService() { assertThat(composeFile(request)).hasSameContentAs(new ClassPathResource("compose/neo4j.yaml")); } + @Test + void createsNeo4jServiceWhenSpringAiModuleIsSelected() { + ProjectRequest request = createProjectRequest("docker-compose", "spring-ai-vectordb-neo4j"); + assertThat(composeFile(request)).hasSameContentAs(new ClassPathResource("compose/neo4j.yaml")); + } + }