mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
maven: test template
This commit is contained in:
+48
-1
@@ -1640,7 +1640,7 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
|
||||
|
||||
public void testCustomSourcesAndJavadocPaths() throws Exception {
|
||||
if (!checkUltimate()) return;
|
||||
|
||||
|
||||
importProject("<groupId>test</groupId>" +
|
||||
"<artifactId>project</artifactId>" +
|
||||
"<version>1</version>" +
|
||||
@@ -2041,4 +2041,51 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
|
||||
assertModuleLibDep("project", "Maven: junit:junit:3.8.2",
|
||||
"jar://" + repoPath + "/junit/junit/3.8.2/junit-3.8.2.jar!/");
|
||||
}
|
||||
|
||||
//public void testVersionRangeDoesntBreakIndirectDependency() throws Exception {
|
||||
// createProjectPom("<groupId>test</groupId>" +
|
||||
// "<artifactId>project</artifactId>" +
|
||||
// "<version>1</version>" +
|
||||
// "<packaging>pom</packaging>" +
|
||||
//
|
||||
// "<modules>" +
|
||||
// " <module>m1</module>" +
|
||||
// " <module>m2</module>" +
|
||||
// "</modules>");
|
||||
//
|
||||
// createModulePom("m1", "<groupId>test</groupId>" +
|
||||
// "<artifactId>m1</artifactId>" +
|
||||
// "<version>1</version>" +
|
||||
//
|
||||
// "<dependencies>" +
|
||||
// " <dependency>" +
|
||||
// " <groupId>asm</groupId>" +
|
||||
// " <artifactId>asm</artifactId>" +
|
||||
// " <version>2.2.3</version>" +
|
||||
// " </dependency>" +
|
||||
// "</dependencies>");
|
||||
//
|
||||
// createModulePom("m2", "<groupId>test</groupId>" +
|
||||
// "<artifactId>m2</artifactId>" +
|
||||
// "<version>1</version>" +
|
||||
//
|
||||
// "<dependencies>" +
|
||||
// " <dependency>" +
|
||||
// " <groupId>test</groupId>" +
|
||||
// " <artifactId>m1</artifactId>" +
|
||||
// " <version>1</version>" +
|
||||
// " </dependency>" +
|
||||
// " <dependency>" +
|
||||
// " <groupId>asm</groupId>" +
|
||||
// " <artifactId>asm</artifactId>" +
|
||||
// " <version>[2.2.3]</version>" +
|
||||
// " </dependency>" +
|
||||
// "</dependencies>");
|
||||
//
|
||||
// importProject();
|
||||
//
|
||||
// assertModuleModuleDeps("m2", "m1");
|
||||
// assertModuleLibDeps("m1", "Maven: asm:asm:2.2.3");
|
||||
// assertModuleLibDeps("m2", "Maven: asm:asm:2.2.3");
|
||||
//}
|
||||
}
|
||||
|
||||
+14
-14
@@ -74,7 +74,7 @@ public class DependenciesManagementTest extends MavenImportingTestCase {
|
||||
|
||||
public void testImportingNotInstalledDependencies() throws Exception {
|
||||
if (ignore()) return;
|
||||
|
||||
|
||||
setRepositoryPath(new File(myDir, "/repo").getPath());
|
||||
updateSettingsXml("<localRepository>" + getRepositoryPath() + "</localRepository>");
|
||||
|
||||
@@ -144,20 +144,20 @@ public class DependenciesManagementTest extends MavenImportingTestCase {
|
||||
updateSettingsXml("<localRepository>" + getRepositoryPath() + "</localRepository>");
|
||||
|
||||
VirtualFile parent = createModulePom("parent",
|
||||
"<groupId>test</groupId>" +
|
||||
"<artifactId>parent</artifactId>" +
|
||||
"<packaging>pom</packaging>" +
|
||||
"<version>1</version>" +
|
||||
"<groupId>test</groupId>" +
|
||||
"<artifactId>parent</artifactId>" +
|
||||
"<packaging>pom</packaging>" +
|
||||
"<version>1</version>" +
|
||||
|
||||
"<dependencyManagement>" +
|
||||
" <dependencies>" +
|
||||
" <dependency>" +
|
||||
" <groupId>junit</groupId>" +
|
||||
" <artifactId>junit</artifactId>" +
|
||||
" <version>4.0</version>" +
|
||||
" </dependency>" +
|
||||
" </dependencies>" +
|
||||
"</dependencyManagement>");
|
||||
"<dependencyManagement>" +
|
||||
" <dependencies>" +
|
||||
" <dependency>" +
|
||||
" <groupId>junit</groupId>" +
|
||||
" <artifactId>junit</artifactId>" +
|
||||
" <version>4.0</version>" +
|
||||
" </dependency>" +
|
||||
" </dependencies>" +
|
||||
"</dependencyManagement>");
|
||||
|
||||
VirtualFile project = createModulePom("project",
|
||||
"<groupId>test</groupId>" +
|
||||
|
||||
Reference in New Issue
Block a user