From f1fd1b1ef8d2fedf4667c15610b402125997ae83 Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Thu, 5 May 2016 12:50:25 +0300 Subject: [PATCH] add maven indices tests to the MAVEN_INTEGRATION_TESTS group --- community-tests/src/tests/testGroups.properties | 1 + .../{indices => }/MavenPluginInfoReaderTest.java | 12 +++--------- 2 files changed, 4 insertions(+), 9 deletions(-) rename plugins/maven/src/test/java/org/jetbrains/idea/maven/{indices => }/MavenPluginInfoReaderTest.java (84%) diff --git a/community-tests/src/tests/testGroups.properties b/community-tests/src/tests/testGroups.properties index 3fe83738e2fe..70129c4e9a5b 100644 --- a/community-tests/src/tests/testGroups.properties +++ b/community-tests/src/tests/testGroups.properties @@ -137,3 +137,4 @@ org.jetbrains.idea.maven.importing.* org.jetbrains.idea.maven.project.importing.* org.jetbrains.idea.maven.compiler.* org.jetbrains.idea.maven.dom.* +org.jetbrains.idea.maven.indices.* diff --git a/plugins/maven/src/test/java/org/jetbrains/idea/maven/indices/MavenPluginInfoReaderTest.java b/plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenPluginInfoReaderTest.java similarity index 84% rename from plugins/maven/src/test/java/org/jetbrains/idea/maven/indices/MavenPluginInfoReaderTest.java rename to plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenPluginInfoReaderTest.java index fd94d7197904..8e84b5ef313a 100644 --- a/plugins/maven/src/test/java/org/jetbrains/idea/maven/indices/MavenPluginInfoReaderTest.java +++ b/plugins/maven/src/test/java/org/jetbrains/idea/maven/MavenPluginInfoReaderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.jetbrains.idea.maven.indices; +package org.jetbrains.idea.maven; -import org.jetbrains.idea.maven.MavenCustomRepositoryHelper; -import org.jetbrains.idea.maven.MavenTestCase; import org.jetbrains.idea.maven.model.MavenId; import org.jetbrains.idea.maven.utils.MavenArtifactUtil; import org.jetbrains.idea.maven.utils.MavenPluginInfo; @@ -25,16 +23,12 @@ import java.util.ArrayList; import java.util.List; public class MavenPluginInfoReaderTest extends MavenTestCase { - private MavenCustomRepositoryHelper myRepositoryHelper; private MavenPluginInfo p; @Override protected void setUp() throws Exception { super.setUp(); - myRepositoryHelper = new MavenCustomRepositoryHelper(myDir, "plugins"); - - setRepositoryPath(myRepositoryHelper.getTestDataPath("plugins")); - + setRepositoryPath(new MavenCustomRepositoryHelper(myDir, "plugins").getTestDataPath("plugins")); MavenId id = new MavenId("org.apache.maven.plugins", "maven-compiler-plugin", "2.0.2"); p = MavenArtifactUtil.readPluginInfo(getRepositoryFile(), id); }