diff --git a/platform/testFramework/src/com/intellij/testFramework/IdeResourcesTestCase.java b/platform/testFramework/src/com/intellij/testFramework/IdeResourcesTestCase.java index 683eb9a3da82..7e6896842f2b 100644 --- a/platform/testFramework/src/com/intellij/testFramework/IdeResourcesTestCase.java +++ b/platform/testFramework/src/com/intellij/testFramework/IdeResourcesTestCase.java @@ -24,7 +24,7 @@ import com.intellij.util.containers.ContainerUtil; import java.net.URL; import java.util.Arrays; -import java.util.List; +import java.util.Collection; import java.util.Set; /** @@ -44,7 +44,7 @@ public abstract class IdeResourcesTestCase extends PlatformTestCase { Set ids = registry.getFeatureIds(); assertNotEmpty(ids); - List errors = ContainerUtil.newArrayList(); + Collection errors = ContainerUtil.newTreeSet(); for (String id : ids) { FeatureDescriptor descriptor = registry.getFeatureDescriptor(id); TipAndTrickBean tip = TipAndTrickBean.findByFileName(descriptor.getTipFileName()); @@ -56,7 +56,7 @@ public abstract class IdeResourcesTestCase extends PlatformTestCase { } public void testTipFilesPresent() { - List errors = ContainerUtil.newArrayList(); + Collection errors = ContainerUtil.newTreeSet(); TipAndTrickBean[] tips = TipAndTrickBean.EP_NAME.getExtensions(); assertNotEmpty(Arrays.asList(tips)); for (TipAndTrickBean tip : tips) { @@ -69,7 +69,7 @@ public abstract class IdeResourcesTestCase extends PlatformTestCase { } public void testTipFilesDuplicates() { - List errors = ContainerUtil.newArrayList(); + Collection errors = ContainerUtil.newTreeSet(); TipAndTrickBean[] tips = TipAndTrickBean.EP_NAME.getExtensions(); assertNotEmpty(Arrays.asList(tips)); Set visited = ContainerUtil.newLinkedHashSet();