From 2188e3553cbb2464034dc66069acf56f1102912f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 18 Aug 2014 14:38:02 -0700 Subject: [PATCH] Prevent tests from picking up empty starter dirs Update StarterDependenciesIntegrationTests to only consider starter folders that contain POM files. Fixes gh-1395 --- .../boot/starter/StarterDependenciesIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java b/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java index b2548b5d0b3..b7cfa637d7f 100644 --- a/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java +++ b/spring-boot-integration-tests/src/test/java/org/springframework/boot/starter/StarterDependenciesIntegrationTests.java @@ -61,7 +61,7 @@ public class StarterDependenciesIntegrationTests { public static List getStarters() { List starters = new ArrayList(); for (File file : new File("../spring-boot-starters").listFiles()) { - if (file.isDirectory()) { + if (file.isDirectory() && new File(file, "pom.xml").exists()) { String name = file.getName(); if (name.startsWith(STARTER_NAME_PREFIX) && !EXCLUDED_STARTERS.contains(file.getName())) {