Eclipse integration: lib/var collision test data.

This commit is contained in:
Alexander Chernikov
2010-07-26 23:58:41 +04:00
parent adb873e598
commit f8b6740da8
7 changed files with 45 additions and 0 deletions
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="var" path="variable/test.jar" sourcepath="variable/test.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/$ROOT$/jars/test.jar!/" />
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin" />
</classpath>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<component>
<exclude-output />
<contentEntry url="file://$MODULE_DIR$" />
<lib name="test.jar" scope="COMPILE">
<srcroot url="jar://$variable$/test.jar!/" />
</lib>
</component>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="var" path="variable/test.jar" sourcepath="variable/test.jar" />
<classpathentry kind="output" path="bin" />
</classpath>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ws-internals</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -128,6 +128,12 @@ public class EclipseLibrariesModificationsTest extends EclipseVarsTest {
new String[]{});
}
public void testVarAddJavadoc() throws Exception {
doTestExisting(new String[]{"/variableidea/test.jar!/"},
new String[]{"/variableidea/test.jar!/"},
new String[]{"/jars/test.jar!/"});
}
public void testVarAddVarSource() throws Exception {
doTestExisting(new String[]{"/variableidea/test.jar!/"},
new String[]{"/variableidea/test.jar!/", "/srcvariableidea/test.jar!/"},